diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-10-15 21:57:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-15 21:57:28 +0300 |
commit | c3d0cc55d98fb32b25cd2164cfa1c399985e7c84 (patch) | |
tree | 6a06ca7ec00e6c7143002fa1762bc5e08f858d4e /src/components/Dialog/index.web.tsx | |
parent | fe5eb507ca693e4db9ca1317b522765a513fea8c (diff) | |
download | voidsky-c3d0cc55d98fb32b25cd2164cfa1c399985e7c84.tar.zst |
Edit profile dialog ALF refresh (#5633)
Diffstat (limited to 'src/components/Dialog/index.web.tsx')
-rw-r--r-- | src/components/Dialog/index.web.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/Dialog/index.web.tsx b/src/components/Dialog/index.web.tsx index 1a20311d3..43cb95b03 100644 --- a/src/components/Dialog/index.web.tsx +++ b/src/components/Dialog/index.web.tsx @@ -28,6 +28,7 @@ import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times' import {Portal} from '#/components/Portal' export {useDialogContext, useDialogControl} from '#/components/Dialog/context' +export * from '#/components/Dialog/shared' export * from '#/components/Dialog/types' export * from '#/components/Dialog/utils' export {Input} from '#/components/forms/TextField' @@ -154,6 +155,8 @@ export function Inner({ label, accessibilityLabelledBy, accessibilityDescribedBy, + header, + contentContainerStyle, }: DialogInnerProps) { const t = useTheme() const {close} = React.useContext(Context) @@ -178,7 +181,6 @@ export function Inner({ a.rounded_md, a.w_full, a.border, - gtMobile ? a.p_2xl : a.p_xl, t.atoms.bg, { maxWidth: 600, @@ -194,7 +196,10 @@ export function Inner({ onFocusOutside={preventDefault} onDismiss={close} style={{display: 'flex', flexDirection: 'column'}}> - {children} + {header} + <View style={[gtMobile ? a.p_2xl : a.p_xl, contentContainerStyle]}> + {children} + </View> </DismissableLayer> </Animated.View> </FocusScope> |