diff --git a/src/components/Layout/Settings/Hero/Hero.jsx b/src/components/Layout/Settings/Hero/Hero.jsx index 1f6210f7..fbdcf4d3 100644 --- a/src/components/Layout/Settings/Hero/Hero.jsx +++ b/src/components/Layout/Settings/Hero/Hero.jsx @@ -8,7 +8,7 @@ import values from 'utils/data/slider_values.json'; const Preview = (props) => { return ( -
+

Preview

{props.children} @@ -69,7 +69,7 @@ const Controls = (props) => { }; return ( -
+

Controls

{props.visibilityToggle && } @@ -92,7 +92,7 @@ const Controls = (props) => { const Hero = (props) => { return ( -
{props.children}
+
{props.children}
); }; diff --git a/src/features/time/options/TimeOptions.jsx b/src/features/time/options/TimeOptions.jsx index 9add53ee..f74d6a4f 100644 --- a/src/features/time/options/TimeOptions.jsx +++ b/src/features/time/options/TimeOptions.jsx @@ -3,14 +3,20 @@ import React, { useState } from 'react'; import { Header, Row, Content, Action, PreferencesWrapper } from 'components/Layout/Settings'; import { Checkbox, Dropdown, Radio } from 'components/Form/Settings'; +import { Hero, Preview, Controls } from 'components/Layout/Settings/Hero'; +import Clock from 'features/time/Clock'; import { MdRefresh } from 'react-icons/md'; import defaults from './default'; const TimeOptions = () => { - const [timeType, setTimeType] = useState(localStorage.getItem('timeType') || defaults.time.timeType); - const [hourColour, setHourColour] = useState(localStorage.getItem('hourColour') || defaults.time.hourColour); + const [timeType, setTimeType] = useState( + localStorage.getItem('timeType') || defaults.time.timeType, + ); + const [hourColour, setHourColour] = useState( + localStorage.getItem('hourColour') || defaults.time.hourColour, + ); const [minuteColour, setMinuteColour] = useState( localStorage.getItem('minuteColour') || defaults.time.minuteColour, ); @@ -142,9 +148,7 @@ const TimeOptions = () => { <>
@@ -167,9 +171,7 @@ const TimeOptions = () => {
@@ -192,9 +194,7 @@ const TimeOptions = () => {
@@ -235,7 +235,7 @@ const TimeOptions = () => { return ( <> -
{ zoomSetting="zoomClock" category="clock" visibilityToggle={true} - > + />*/} + + + + + + +

options

+ - {getTimeSettings()} + {getTimeSettings()} ); };