From d0a47bd1226f4c7099f7d97fd374b6902b9381d4 Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 16 Oct 2019 10:15:46 +0100 Subject: [PATCH] Added support for transition root property --- src/components/modals/SettingsModal.jsx | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/components/modals/SettingsModal.jsx b/src/components/modals/SettingsModal.jsx index 4f94b2a..2b9fdee 100644 --- a/src/components/modals/SettingsModal.jsx +++ b/src/components/modals/SettingsModal.jsx @@ -20,6 +20,17 @@ class SettingsModal extends React.Component { onOpenToggle: PropTypes.func.isRequired, } + changeTransitionProperty(property, value) { + const changedStyle = { + ...this.props.mapStyle, + transition: { + ...this.props.mapStyle.transition, + [property]: value + } + } + this.props.onStyleChanged(changedStyle) + } + changeLightProperty(property, value) { const changedStyle = { ...this.props.mapStyle, @@ -45,6 +56,7 @@ class SettingsModal extends React.Component { const inputProps = { } const light = this.props.mapStyle.light || {}; + const transition = this.props.mapStyle.transition || {}; return + + + + + + + +