From 19e228894d4bd90541db9e47fee887d53bcb34b4 Mon Sep 17 00:00:00 2001 From: Taso Date: Tue, 16 Mar 2021 17:31:41 -0400 Subject: [PATCH] tweak(phone/settings): Added streamer mode desc --- phone/src/apps/settings/components/SettingItem.tsx | 5 +++-- phone/src/apps/settings/components/SettingsApp.tsx | 1 + phone/src/locale/en.json | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/phone/src/apps/settings/components/SettingItem.tsx b/phone/src/apps/settings/components/SettingItem.tsx index 1800332..a6dff73 100644 --- a/phone/src/apps/settings/components/SettingItem.tsx +++ b/phone/src/apps/settings/components/SettingItem.tsx @@ -67,12 +67,13 @@ interface ISettingSwitch { value: boolean; onClick: any; icon: JSX.Element; + secondary: string; } -export const SettingSwitch = ({ label, value, onClick, icon }: ISettingSwitch) => ( +export const SettingSwitch = ({ label, value, onClick, icon, secondary }: ISettingSwitch) => ( {icon} - + onClick(value)} /> diff --git a/phone/src/apps/settings/components/SettingsApp.tsx b/phone/src/apps/settings/components/SettingsApp.tsx index ade87c0..6dac2b0 100644 --- a/phone/src/apps/settings/components/SettingsApp.tsx +++ b/phone/src/apps/settings/components/SettingsApp.tsx @@ -140,6 +140,7 @@ export const SettingsApp = () => { /> } value={settings.streamerMode} onClick={(curr) => handleSettingChange('streamerMode', !curr)} diff --git a/phone/src/locale/en.json b/phone/src/locale/en.json index d6fe849..d33ed9d 100644 --- a/phone/src/locale/en.json +++ b/phone/src/locale/en.json @@ -121,6 +121,7 @@ "APPS_SETTINGS_OPTION_NOTIFICATION_FILTER": "Notification Filters", "APPS_SETTINGS_OPTION_NOTIFICATION": "Notification", "APPS_SETTINGS_OPTION_NOTIFICATIONVOL": "Notification Volume", + "APPS_SETTING_STREAMER_MODE_DESC": "Hide images before they are shown", "APPS_MARKETPLACE_CREATE_LISTING_SUCCESS": "Successfully created a new listing", "APPS_MARKETPALCE_CREATE_LISTING_FAILED": "Failed to create a new listing",