From 0d25fbca6d48bed89360b85d73844e0b20652bee Mon Sep 17 00:00:00 2001 From: alexsparkes Date: Thu, 5 Feb 2026 23:01:12 +0000 Subject: [PATCH] feat: add reset button for greeting, quote, and time options to restore default settings --- .../Layout/Settings/Section/Section.jsx | 3 +- .../greeting/options/GreetingOptions.jsx | 33 ++++++++++++++- src/features/quote/options/QuoteOptions.jsx | 33 ++++++++++++++- src/features/time/options/TimeOptions.jsx | 41 ++++++++++++++++++- 4 files changed, 103 insertions(+), 7 deletions(-) diff --git a/src/components/Layout/Settings/Section/Section.jsx b/src/components/Layout/Settings/Section/Section.jsx index e73b03d1..3364cf29 100644 --- a/src/components/Layout/Settings/Section/Section.jsx +++ b/src/components/Layout/Settings/Section/Section.jsx @@ -12,7 +12,8 @@ function Section({ title, subtitle, icon, onClick, children }) {
- {React.Children.count(children) === 0 ? : children} + {children} +
); diff --git a/src/features/greeting/options/GreetingOptions.jsx b/src/features/greeting/options/GreetingOptions.jsx index 814c1421..ca3ea843 100644 --- a/src/features/greeting/options/GreetingOptions.jsx +++ b/src/features/greeting/options/GreetingOptions.jsx @@ -358,7 +358,21 @@ const GreetingOptions = ({ currentSubSection, onSubSectionChange, sectionName }) secondaryTitle={t(`${GREETING_SECTION}.appearance.title`)} goBack={() => onSubSectionChange(null, sectionName)} report={false} - /> + > +