add outage screen icon
This commit is contained in:
@@ -3,6 +3,7 @@ import {useLingui} from '@lingui/react/macro'
|
|||||||
|
|
||||||
import {usePdsClient, useSessionApi} from '#/state/session'
|
import {usePdsClient, useSessionApi} from '#/state/session'
|
||||||
import {Error} from '#/components/Error'
|
import {Error} from '#/components/Error'
|
||||||
|
import {EmojiSad_Stroke2_Corner0_Rounded as EmojiSad} from '#/components/icons/Emoji'
|
||||||
import {refetchOtherRequiredData} from '#/ageAssurance/data'
|
import {refetchOtherRequiredData} from '#/ageAssurance/data'
|
||||||
import {IS_WEB} from '#/env'
|
import {IS_WEB} from '#/env'
|
||||||
|
|
||||||
@@ -25,6 +26,7 @@ export function DataUnavailableScreen() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Error
|
<Error
|
||||||
|
icon={EmojiSad}
|
||||||
title={l`Unable to load your account`}
|
title={l`Unable to load your account`}
|
||||||
message={l`We couldn't load your account settings. Check your internet connection and try again.`}
|
message={l`We couldn't load your account settings. Check your internet connection and try again.`}
|
||||||
onRetry={onRetry}
|
onRetry={onRetry}
|
||||||
|
|||||||
@@ -4,11 +4,13 @@ import {Trans, useLingui} from '@lingui/react/macro'
|
|||||||
import {useGoBack} from '#/lib/hooks/useGoBack'
|
import {useGoBack} from '#/lib/hooks/useGoBack'
|
||||||
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
||||||
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
||||||
|
import {type Props as SVGIconProps} from '#/components/icons/common'
|
||||||
import * as Layout from '#/components/Layout'
|
import * as Layout from '#/components/Layout'
|
||||||
import {Loader} from '#/components/Loader'
|
import {Loader} from '#/components/Loader'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
export function Error({
|
export function Error({
|
||||||
|
icon: Icon,
|
||||||
title,
|
title,
|
||||||
message,
|
message,
|
||||||
onRetry,
|
onRetry,
|
||||||
@@ -17,6 +19,7 @@ export function Error({
|
|||||||
secondaryAction,
|
secondaryAction,
|
||||||
isRetrying,
|
isRetrying,
|
||||||
}: {
|
}: {
|
||||||
|
icon?: React.ComponentType<SVGIconProps>
|
||||||
title?: string
|
title?: string
|
||||||
message?: string
|
message?: string
|
||||||
onRetry?: () => unknown
|
onRetry?: () => unknown
|
||||||
@@ -44,6 +47,7 @@ export function Error({
|
|||||||
{paddingTop: 175, paddingBottom: 110},
|
{paddingTop: 175, paddingBottom: 110},
|
||||||
]}>
|
]}>
|
||||||
<View style={[a.w_full, a.align_center, a.gap_lg]}>
|
<View style={[a.w_full, a.align_center, a.gap_lg]}>
|
||||||
|
{Icon && <Icon size="4xl" fill={t.atoms.text_contrast_medium.color} />}
|
||||||
<Text style={[a.font_semi_bold, a.text_3xl]}>{title}</Text>
|
<Text style={[a.font_semi_bold, a.text_3xl]}>{title}</Text>
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
|
|||||||
Reference in New Issue
Block a user