diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-09-09 18:45:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-09 18:45:36 +0300 |
commit | 4a1b1f17f46de9f8dde2766d61edc02c2267b14b (patch) | |
tree | 1f166879b40c73db7e1afd9b8ab189c872f58214 /src/screens/Settings/components/ExportCarDialog.tsx | |
parent | 7574a745d17135b33a31e3fb7da8953ea378fe4c (diff) | |
download | voidsky-4a1b1f17f46de9f8dde2766d61edc02c2267b14b.tar.zst |
Clean up dialogs (#8934)
Diffstat (limited to 'src/screens/Settings/components/ExportCarDialog.tsx')
-rw-r--r-- | src/screens/Settings/components/ExportCarDialog.tsx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/screens/Settings/components/ExportCarDialog.tsx b/src/screens/Settings/components/ExportCarDialog.tsx index edeccd128..d5131c5c6 100644 --- a/src/screens/Settings/components/ExportCarDialog.tsx +++ b/src/screens/Settings/components/ExportCarDialog.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import {useCallback, useState} from 'react' import {View} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -18,14 +18,14 @@ import {Text} from '#/components/Typography' export function ExportCarDialog({ control, }: { - control: Dialog.DialogOuterProps['control'] + control: Dialog.DialogControlProps }) { const {_} = useLingui() const t = useTheme() const agent = useAgent() - const [loading, setLoading] = React.useState(false) + const [loading, setLoading] = useState(false) - const download = React.useCallback(async () => { + const download = useCallback(async () => { if (!agent.session) { return // shouldnt ever happen } @@ -52,7 +52,7 @@ export function ExportCarDialog({ }, [_, control, agent]) return ( - <Dialog.Outer control={control}> + <Dialog.Outer control={control} nativeOptions={{preventExpansion: true}}> <Dialog.Handle /> <Dialog.ScrollableInner accessibilityDescribedBy="dialog-description" @@ -63,7 +63,7 @@ export function ExportCarDialog({ </Text> <Text nativeID="dialog-description" - style={[a.text_sm, a.leading_normal, t.atoms.text_contrast_high]}> + style={[a.text_sm, a.leading_snug, t.atoms.text_contrast_high]}> <Trans> Your account repository, containing all public data records, can be downloaded as a "CAR" file. This file does not include media @@ -73,7 +73,6 @@ export function ExportCarDialog({ </Text> <Button - variant="solid" color="primary" size="large" label={_(msg`Download CAR file`)} |