hide notification settings
This commit is contained in:
parent
943c5654c1
commit
5915919560
1 changed files with 47 additions and 43 deletions
|
@ -105,52 +105,56 @@ class SettingsPage extends React.PureComponent {
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View style={settingsStyle.sectionDivider} />
|
{false && (
|
||||||
<Text style={settingsStyle.sectionTitle}>{__('Notifications')}</Text>
|
<View>
|
||||||
<Text style={settingsStyle.sectionDescription}>
|
<View style={settingsStyle.sectionDivider} />
|
||||||
{__('Choose the notifications you would like to receive.')}
|
<Text style={settingsStyle.sectionTitle}>{__('Notifications')}</Text>
|
||||||
</Text>
|
<Text style={settingsStyle.sectionDescription}>
|
||||||
<View style={settingsStyle.row}>
|
{__('Choose the notifications you would like to receive.')}
|
||||||
<View style={settingsStyle.switchText}>
|
</Text>
|
||||||
<Text style={settingsStyle.label}>{__('Subscriptions')}</Text>
|
<View style={settingsStyle.row}>
|
||||||
</View>
|
<View style={settingsStyle.switchText}>
|
||||||
<View style={settingsStyle.switchContainer}>
|
<Text style={settingsStyle.label}>{__('Subscriptions')}</Text>
|
||||||
<Switch
|
</View>
|
||||||
value={actualReceiveSubscriptionNotifications}
|
<View style={settingsStyle.switchContainer}>
|
||||||
onValueChange={value => {
|
<Switch
|
||||||
this.setNativeBooleanSetting(SETTINGS.RECEIVE_SUBSCRIPTION_NOTIFICATIONS, value);
|
value={actualReceiveSubscriptionNotifications}
|
||||||
}}
|
onValueChange={value => {
|
||||||
/>
|
this.setNativeBooleanSetting(SETTINGS.RECEIVE_SUBSCRIPTION_NOTIFICATIONS, value);
|
||||||
</View>
|
}}
|
||||||
</View>
|
/>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
|
||||||
<View style={settingsStyle.row}>
|
<View style={settingsStyle.row}>
|
||||||
<View style={settingsStyle.switchText}>
|
<View style={settingsStyle.switchText}>
|
||||||
<Text style={settingsStyle.label}>{__('Rewards')}</Text>
|
<Text style={settingsStyle.label}>{__('Rewards')}</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={settingsStyle.switchContainer}>
|
<View style={settingsStyle.switchContainer}>
|
||||||
<Switch
|
<Switch
|
||||||
value={actualReceiveRewardNotifications}
|
value={actualReceiveRewardNotifications}
|
||||||
onValueChange={value => {
|
onValueChange={value => {
|
||||||
this.setNativeBooleanSetting(SETTINGS.RECEIVE_REWARD_NOTIFICATIONS, value);
|
this.setNativeBooleanSetting(SETTINGS.RECEIVE_REWARD_NOTIFICATIONS, value);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View style={settingsStyle.row}>
|
<View style={settingsStyle.row}>
|
||||||
<View style={settingsStyle.switchText}>
|
<View style={settingsStyle.switchText}>
|
||||||
<Text style={settingsStyle.label}>{__('Tags you follow')}</Text>
|
<Text style={settingsStyle.label}>{__('Tags you follow')}</Text>
|
||||||
|
</View>
|
||||||
|
<View style={settingsStyle.switchContainer}>
|
||||||
|
<Switch
|
||||||
|
value={actualReceiveInterestsNotifications}
|
||||||
|
onValueChange={value => {
|
||||||
|
this.setNativeBooleanSetting(SETTINGS.RECEIVE_INTERESTS_NOTIFICATIONS, value);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View style={settingsStyle.switchContainer}>
|
)}
|
||||||
<Switch
|
|
||||||
value={actualReceiveInterestsNotifications}
|
|
||||||
onValueChange={value => {
|
|
||||||
this.setNativeBooleanSetting(SETTINGS.RECEIVE_INTERESTS_NOTIFICATIONS, value);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</View>
|
|
||||||
</View>
|
|
||||||
|
|
||||||
{false && (
|
{false && (
|
||||||
<View style={settingsStyle.row}>
|
<View style={settingsStyle.row}>
|
||||||
|
|
Loading…
Reference in a new issue