@@ -3,22 +3,9 @@ import { useDispatch, useSelector } from 'react-redux'
3
3
import { Link } from 'react-router-dom'
4
4
5
5
import {
6
- ALIGN_CENTER ,
7
- ALIGN_FLEX_START ,
8
- BORDERS ,
9
- Btn ,
10
- COLORS ,
11
- DIRECTION_COLUMN ,
12
- DIRECTION_ROW ,
13
- DISPLAY_FLEX ,
14
- Flex ,
15
6
Icon ,
16
7
InlineNotification ,
17
- JUSTIFY_CENTER ,
18
- JUSTIFY_SPACE_BETWEEN ,
19
8
LegacyStyledText ,
20
- SPACING ,
21
- TYPOGRAPHY ,
22
9
} from '@opentrons/components'
23
10
24
11
import { LANGUAGES , US_ENGLISH_DISPLAY_NAME } from '/app/i18n'
@@ -43,6 +30,8 @@ import { useErrorRecoverySettingsToggle } from '/app/resources/errorRecovery'
43
30
import { useNetworkConnection } from '/app/resources/networking'
44
31
import { useLEDLights } from '/app/resources/robot-settings'
45
32
33
+ import styles from './robotsettingslist.module.css'
34
+
46
35
import type { SetSettingOption } from '/app/organisms/ODD/RobotSettingsDashboard'
47
36
import type { Dispatch , State } from '/app/redux/types'
48
37
@@ -88,9 +77,9 @@ export function RobotSettingsList(props: RobotSettingsListProps): JSX.Element {
88
77
const currentLanguageOption = LANGUAGES . find ( lng => lng . value === appLanguage )
89
78
90
79
return (
91
- < Flex flexDirection = { DIRECTION_COLUMN } >
80
+ < div className = { styles . main_content } >
92
81
< Navigation />
93
- < Flex paddingX = { SPACING . spacing40 } flexDirection = { DIRECTION_COLUMN } >
82
+ < div className = { styles . settings_content } >
94
83
< RobotSettingButton
95
84
settingName = { t ( 'network_settings' ) }
96
85
dataTestId = "RobotSettingButton_network_settings"
@@ -123,7 +112,7 @@ export function RobotSettingsList(props: RobotSettingsListProps): JSX.Element {
123
112
} }
124
113
iconName = "update"
125
114
rightElement = {
126
- < Flex gridGap = { SPACING . spacing40 } alignItems = { ALIGN_CENTER } >
115
+ < div className = { styles . right_element_with_icon } >
127
116
{ isUpdateAvailable ? (
128
117
< InlineNotification
129
118
type = "alert"
@@ -134,8 +123,8 @@ export function RobotSettingsList(props: RobotSettingsListProps): JSX.Element {
134
123
hug = { true }
135
124
/>
136
125
) : null }
137
- < Icon name = "more" size = "3rem" color = { COLORS . black90 } />
138
- </ Flex >
126
+ < Icon name = "more" className = { styles . icon_large } color = "#171717" />
127
+ </ div >
139
128
}
140
129
/>
141
130
< RobotSettingButton
@@ -228,8 +217,8 @@ export function RobotSettingsList(props: RobotSettingsListProps): JSX.Element {
228
217
onClick = { ( ) => dispatch ( toggleDevtools ( ) ) }
229
218
/>
230
219
{ devToolsOn ? < FeatureFlags /> : null }
231
- </ Flex >
232
- </ Flex >
220
+ </ div >
221
+ </ div >
233
222
)
234
223
}
235
224
@@ -240,45 +229,27 @@ function FeatureFlags(): JSX.Element {
240
229
return (
241
230
< >
242
231
{ DEV_INTERNAL_FLAGS . map ( flag => (
243
- < Btn
232
+ < button
244
233
key = { flag }
245
- width = "100%"
246
- marginBottom = { SPACING . spacing8 }
247
- backgroundColor = { COLORS . grey35 }
248
- padding = { `${ SPACING . spacing20 } ${ SPACING . spacing24 } ` }
249
- borderRadius = { BORDERS . borderRadius16 }
250
- display = { DISPLAY_FLEX }
251
- flexDirection = { DIRECTION_ROW }
252
- gridGap = { SPACING . spacing24 }
253
- justifyContent = { JUSTIFY_SPACE_BETWEEN }
254
- alignItems = { ALIGN_CENTER }
234
+ className = { styles . feature_flag_button }
255
235
onClick = { ( ) => {
256
236
dispatch ( toggleDevInternalFlag ( flag ) )
257
237
} }
258
238
>
259
- < Flex
260
- flexDirection = { DIRECTION_ROW }
261
- gridGap = { SPACING . spacing24 }
262
- alignItems = { ALIGN_CENTER }
263
- >
264
- < Icon name = "alert-circle" size = "3rem" color = { COLORS . black90 } />
265
- < Flex
266
- flexDirection = { DIRECTION_COLUMN }
267
- gridGap = { SPACING . spacing2 }
268
- alignItems = { ALIGN_FLEX_START }
269
- justifyContent = { JUSTIFY_CENTER }
270
- width = "46.25rem"
271
- >
272
- < LegacyStyledText
273
- as = "h4"
274
- fontWeight = { TYPOGRAPHY . fontWeightSemiBold }
275
- >
239
+ < div className = { styles . feature_flag_content } >
240
+ < Icon
241
+ name = "alert-circle"
242
+ className = { styles . icon_large }
243
+ color = "#171717"
244
+ />
245
+ < div className = { styles . feature_flag_text_content } >
246
+ < LegacyStyledText as = "h4" className = { styles . feature_flag_title } >
276
247
{ t ( `__dev_internal__${ flag } ` ) }
277
248
</ LegacyStyledText >
278
- </ Flex >
279
- </ Flex >
249
+ </ div >
250
+ </ div >
280
251
< OnOffToggle isOn = { Boolean ( devInternalFlags ?. [ flag ] ) } />
281
- </ Btn >
252
+ </ button >
282
253
) ) }
283
254
</ >
284
255
)
0 commit comments