From f3f8a4b9633a26bf120c879e1b7cfb6a4f3de1f3 Mon Sep 17 00:00:00 2001 From: Ashish Aggarwal Date: Wed, 2 Nov 2022 16:11:36 -0400 Subject: [PATCH 1/4] import localize --- src/App.js | 4 +++- src/Static.js | 48 ++++++++++++++++++++++-------------------------- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/src/App.js b/src/App.js index 69650f3..7c0980d 100644 --- a/src/App.js +++ b/src/App.js @@ -63,6 +63,7 @@ class App extends React.Component { welcomeToDynamoTitle={this.state.welcomeToDynamoTitle} launchTitle={this.state.launchTitle} showScreenAgainLabel={this.state.showScreenAgainLabel} + importSettingsTitle={this.state.importSettingsTitle} /> : } @@ -81,7 +82,8 @@ class App extends React.Component { this.setState({ welcomeToDynamoTitle: labels.welcomeToDynamoTitle, launchTitle: labels.launchTitle, - showScreenAgainLabel: labels.showScreenAgainLabel + showScreenAgainLabel: labels.showScreenAgainLabel, + importSettingsTitle: labels.importSettingsTitle }); } diff --git a/src/Static.js b/src/Static.js index 0cce85b..4be6c1a 100644 --- a/src/Static.js +++ b/src/Static.js @@ -28,7 +28,8 @@ class Static extends React.Component { importSettingsTitle: 'Import settings', errorDescription: 'Something went wrong when importing your custom setting file. Please try again or proceed with default settings.', signInTitle: this.props.signInTitle, - signInStatus: this.props.signInStatus + signInStatus: this.props.signInStatus, + importSettingsTitle: this.props.importSettingsTitle, }; window.setImportStatus = this.setImportStatus.bind(this); @@ -44,7 +45,7 @@ class Static extends React.Component { @@ -54,29 +55,24 @@ class Static extends React.Component { overlay={ - } - > + }>