11import './style.scss' ;
2- import { ThemeSpacing } from '../../../../types' ;
2+ import { ThemeSpacing , ThemeVariable } from '../../../../types' ;
33import { Button } from '../../../Button/Button' ;
44import { ButtonVariant } from '../../../Button/types' ;
55import { Divider } from '../../../Divider/Divider' ;
@@ -17,22 +17,34 @@ export const LocationCardPostureCheckFailView = () => {
1717 setView ( LocationCardViews . Default ) ;
1818 } ;
1919
20+ const postureErrors = postureError
21+ ? postureError
22+ . split ( ',' )
23+ . map ( ( error ) => error . trim ( ) )
24+ . filter ( Boolean )
25+ : [ 'Your device did not pass posture check.' ] ;
26+
2027 return (
2128 < div className = "location-card-posture-check-fail-view" >
2229 < Divider spacing = { ThemeSpacing . Md } />
23- < Icon className = "posture-warning-icon" icon = { IconKind . WarningFilled } size = { 48 } />
30+ < Icon
31+ className = "posture-error-icon"
32+ icon = { IconKind . GlobeBlocked }
33+ size = { 48 }
34+ staticColor = { ThemeVariable . FgWhite70 }
35+ />
2436 < SizedBox height = { ThemeSpacing . Md } />
2537 < LocationViewHeader title = "Posture check failed" >
26- < p className = "error" >
27- { postureError ?? 'Your device did not pass posture check.' }
28- </ p >
38+ < div className = "posture-errors" >
39+ { postureErrors . map ( ( error ) => (
40+ < p className = "error" key = { error } >
41+ { error }
42+ </ p >
43+ ) ) }
44+ </ div >
2945 </ LocationViewHeader >
3046 < SizedBox height = { ThemeSpacing . Xl } />
31- < Button
32- text = "Try again"
33- variant = { ButtonVariant . Secondary }
34- onClick = { backToLocation }
35- />
47+ < Button text = "Got it" variant = { ButtonVariant . Secondary } onClick = { backToLocation } />
3648 </ div >
3749 ) ;
3850} ;
0 commit comments