From c0166ceb0bd2d7f9205c70211225935ef73c5b3f Mon Sep 17 00:00:00 2001 From: David Ralph Date: Tue, 19 Jul 2022 21:56:34 +0100 Subject: [PATCH] fix: add missing updated code from live share --- .../main/settings/sections/Greeting.jsx | 2 +- .../modals/main/settings/sections/Quote.jsx | 201 ++++++++++-------- 2 files changed, 114 insertions(+), 89 deletions(-) diff --git a/src/components/modals/main/settings/sections/Greeting.jsx b/src/components/modals/main/settings/sections/Greeting.jsx index 473ff77b..3c66312f 100644 --- a/src/components/modals/main/settings/sections/Greeting.jsx +++ b/src/components/modals/main/settings/sections/Greeting.jsx @@ -71,7 +71,7 @@ export default class GreetingSettings extends PureComponent { text={getMessage('modals.main.settings.sections.greeting.birthday_age')} category="greeting" /> -

{getMessage('modals.main.settings.sections.greeting.birthday_date')}

+

{getMessage('modals.main.settings.sections.greeting.birthday_date')}

this.customQuote(e, true, index, 'quote')} varient="outlined" style={{ marginRight: '10px' }} @@ -125,7 +126,7 @@ export default class QuoteSettings extends PureComponent { this.customQuote(e, true, index, 'author')} varient="outlined" /> @@ -148,96 +149,120 @@ export default class QuoteSettings extends PureComponent { ); } else { // api - customSettings = ( - - - - - - - - - - - - - - ); + customSettings = <>; } return ( <> -
- - this.setState({ sourceSection: false })}> + + {this.getMessage('modals.main.settings.sections.quote.title')} + + {' '} + {this.getMessage('modals.main.settings.sections.background.source.title')} + + ) : ( +
- - - - - this.setState({ quoteType: value })} - category="quote" - > - {this.marketplaceType()} - - - - + )} +
this.setState({ sourceSection: true })}> +
+ +
+ + {this.getMessage('modals.main.settings.sections.background.source.title')} + + + {this.getMessage('modals.main.settings.sections.quote.source_subtitle')} + +
+
+
+ this.setState({ quoteType: value })} + category="quote" + > + {this.marketplaceType()} + + + +
+
+ {!this.state.sourceSection ? ( + <> + + + + + + + + + + + + + + + + + + + + + ) : null} {customSettings} );