@@ -50,42 +50,31 @@ class ThresholdDropdown extends React.PureComponent<
5050 }
5151}
5252
53- const SyncNotificationSetting = ( props : Props ) => (
54- < Kb . Box2
55- direction = "horizontal"
56- alignItems = "flex-start"
57- fullWidth = { true }
58- style = { { flex : 1 , flexWrap : 'wrap' } }
59- >
60- < Kb . Text type = "Body" > Warn me if I have less than </ Kb . Text >
61- < ThresholdDropdown { ...props } />
62- < Kb . Text type = "Body" > of storage space remaining</ Kb . Text >
63- </ Kb . Box2 >
64- )
65-
6653const Files = ( props : Props ) => (
67- < >
68- < Kb . Box2 direction = "vertical" fullHeight = { true } fullWidth = { true } >
69- < Kb . Box2 direction = "vertical" fullWidth = { true } style = { styles . syncContent } >
70- < Kb . Box >
71- < Kb . Box2 direction = "horizontal" gap = "tiny" style = { styles . contentHeader } >
72- < Kb . Text type = "BodySmallSemibold" > Sync</ Kb . Text >
73- </ Kb . Box2 >
74- < Kb . Checkbox
75- onCheck = {
76- props . spaceAvailableNotificationThreshold === 0
77- ? props . onEnableSyncNotifications
78- : props . onDisableSyncNotifications
79- }
80- labelComponent = { < SyncNotificationSetting { ...props } /> }
81- checked = { props . spaceAvailableNotificationThreshold !== 0 }
82- disabled = { props . areSettingsLoading }
83- style = { styles . syncNotificationCheckbox }
84- />
85- </ Kb . Box >
54+ < Kb . Box2 direction = "vertical" fullWidth = { true } alignItems = "center" >
55+ < Kb . Box2 direction = "vertical" fullWidth = { true } style = { styles . syncContent } >
56+ < Kb . Box2 direction = "horizontal" gap = "tiny" style = { styles . contentHeader } >
57+ < Kb . Text type = "BodySmallSemibold" > Sync</ Kb . Text >
8658 </ Kb . Box2 >
59+ < Kb . Checkbox
60+ onCheck = {
61+ props . spaceAvailableNotificationThreshold === 0
62+ ? props . onEnableSyncNotifications
63+ : props . onDisableSyncNotifications
64+ }
65+ label = "Warn when low on storage space"
66+ checked = { props . spaceAvailableNotificationThreshold !== 0 }
67+ disabled = { props . areSettingsLoading }
68+ style = { styles . syncNotificationCheckbox }
69+ />
70+ { ! ! props . spaceAvailableNotificationThreshold && (
71+ < Kb . Text type = "BodySmall" style = { { marginTop : Styles . globalMargins . tiny } } >
72+ Threshold:
73+ </ Kb . Text >
74+ ) }
75+ { ! ! props . spaceAvailableNotificationThreshold && < ThresholdDropdown { ...props } /> }
8776 </ Kb . Box2 >
88- </ >
77+ </ Kb . Box2 >
8978)
9079
9180const styles = Styles . styleSheetCreate (
@@ -94,10 +83,16 @@ const styles = Styles.styleSheetCreate(
9483 contentHeader : {
9584 paddingBottom : Styles . globalMargins . tiny ,
9685 } ,
97- syncContent : {
98- paddingLeft : Styles . globalMargins . xsmall ,
99- paddingTop : Styles . globalMargins . medium ,
100- } ,
86+ syncContent : Styles . platformStyles ( {
87+ common : {
88+ paddingLeft : Styles . globalMargins . xsmall ,
89+ paddingRight : Styles . globalMargins . xsmall ,
90+ paddingTop : Styles . globalMargins . medium ,
91+ } ,
92+ isTablet : {
93+ maxWidth : 410 ,
94+ } ,
95+ } ) ,
10196 syncNotificationCheckbox : {
10297 alignItems : 'center' ,
10398 } ,
0 commit comments