Skip to content

Commit

Permalink
remove duplicate functions added in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sethkfman committed Feb 28, 2024
1 parent 1225bfd commit b3f356b
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions app/components/Views/Settings/ExperimentalSettings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ const ExperimentalSettings = ({ navigation, route }: Props) => {
setSesEnabled(!sesEnabled);
};

const [sesEnabled, setSesEnabled] = useState(
storage.getBoolean('is-ses-enabled'),
);

const toggleSesEnabled = () => {
storage.set('is-ses-enabled', !sesEnabled);
setSesEnabled(!sesEnabled);
};

const isFullScreenModal = route?.params?.isFullScreenModal;

const theme = useTheme();
Expand Down Expand Up @@ -103,52 +94,6 @@ const ExperimentalSettings = ({ navigation, route }: Props) => {
</>
);

const SesSettings: FC = () => (
<>
{Device.isAndroid() && (
<Text
color={TextColor.Default}
variant={TextVariant.HeadingLG}
style={styles.heading}
>
{strings('app_settings.security_heading')}
</Text>
)}
<View style={styles.setting}>
<View style={styles.switchElement}>
<Text color={TextColor.Default} variant={TextVariant.BodyLGMedium}>
{strings('app_settings.ses_heading')}
</Text>
<Switch
value={sesEnabled}
onValueChange={toggleSesEnabled}
trackColor={{
true: colors.primary.default,
false: colors.border.muted,
}}
thumbColor={importedColors.white}
style={styles.switch}
ios_backgroundColor={colors.border.muted}
/>
</View>
<Text
color={TextColor.Alternative}
variant={TextVariant.BodyMD}
style={styles.desc}
>
{strings('app_settings.ses_description')}{' '}
<Button
variant={ButtonVariants.Link}
size={ButtonSize.Auto}
onPress={openSesLink}
label={strings('app_settings.ses_link')}
/>
.
</Text>
</View>
</>
);

const SesSettings: FC = () => (
<>
<Text
Expand Down

0 comments on commit b3f356b

Please sign in to comment.