+6
-4
src/screens/Settings/components/ExportCarDialog.tsx
+6
-4
src/screens/Settings/components/ExportCarDialog.tsx
···
6
6
import {saveBytesToDisk} from '#/lib/media/manip'
7
7
import {logger} from '#/logger'
8
8
import {useAgent} from '#/state/session'
9
-
import * as Toast from '#/view/com/util/Toast'
10
-
import {atoms as a, useTheme} from '#/alf'
9
+
import {atoms as a, useTheme, web} from '#/alf'
11
10
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
12
11
import * as Dialog from '#/components/Dialog'
13
12
import {Download_Stroke2_Corner0_Rounded as DownloadIcon} from '#/components/icons/Download'
14
13
import {InlineLinkText} from '#/components/Link'
15
14
import {Loader} from '#/components/Loader'
15
+
import * as Toast from '#/components/Toast'
16
16
import {Text} from '#/components/Typography'
17
17
18
18
export function ExportCarDialog({
···
44
44
}
45
45
} catch (e) {
46
46
logger.error('Error occurred while downloading CAR file', {message: e})
47
-
Toast.show(_(msg`Error occurred while saving file`), 'xmark')
47
+
Toast.show(_(msg`Error occurred while saving file`), {type: 'error'})
48
48
} finally {
49
49
setLoading(false)
50
50
control.close()
···
56
56
<Dialog.Handle />
57
57
<Dialog.ScrollableInner
58
58
accessibilityDescribedBy="dialog-description"
59
-
accessibilityLabelledBy="dialog-title">
59
+
accessibilityLabelledBy="dialog-title"
60
+
style={web({maxWidth: 500})}>
60
61
<View style={[a.relative, a.gap_lg, a.w_full]}>
61
62
<Text nativeID="dialog-title" style={[a.text_2xl, a.font_bold]}>
62
63
<Trans>Export My Data</Trans>
···
105
106
</Trans>
106
107
</Text>
107
108
</View>
109
+
<Dialog.Close />
108
110
</Dialog.ScrollableInner>
109
111
</Dialog.Outer>
110
112
)