diff --git a/src/frontend/screens/Settings/ProjectConfig.js b/src/frontend/screens/Settings/ProjectConfig.js index 71881c10e..e4a6542b7 100644 --- a/src/frontend/screens/Settings/ProjectConfig.js +++ b/src/frontend/screens/Settings/ProjectConfig.js @@ -124,7 +124,7 @@ const ProjectConfig = () => { variant="outlined" onPress={handleImportPress} > - + {t(m.importConfig) /* Button component expects string children */} ); diff --git a/src/frontend/sharedComponents/Button.js b/src/frontend/sharedComponents/Button.js index 9ca2f0cc6..36198671f 100644 --- a/src/frontend/sharedComponents/Button.js +++ b/src/frontend/sharedComponents/Button.js @@ -57,13 +57,16 @@ const Button = ({ onPress={disabled ? undefined : onPress} > - {typeof children === "string" ? ( - - {children.toUpperCase()} - - ) : ( - children - )} + { + typeof children === "string" ? ( + + {children.toUpperCase()} + + ) : ( + children + ) + // TODO: Handle as children (wrapping in ) + }