Fixes a ts error caused by WelcomeModal styles on logged-out homepage (#9362)
* Fixes a ts error caused by welcomemodal styles on logged-out homepage * use flatten util instead --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@ import {FocusGuards, FocusScope} from 'radix-ui/internal'
|
|||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {useLoggedOutViewControls} from '#/state/shell/logged-out'
|
import {useLoggedOutViewControls} from '#/state/shell/logged-out'
|
||||||
import {Logo} from '#/view/icons/Logo'
|
import {Logo} from '#/view/icons/Logo'
|
||||||
import {atoms as a, useBreakpoints, web} from '#/alf'
|
import {atoms as a, flatten, useBreakpoints, web} from '#/alf'
|
||||||
import {Button, ButtonText} from '#/components/Button'
|
import {Button, ButtonText} from '#/components/Button'
|
||||||
import {TimesLarge_Stroke2_Corner0_Rounded as XIcon} from '#/components/icons/Times'
|
import {TimesLarge_Stroke2_Corner0_Rounded as XIcon} from '#/components/icons/Times'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
@@ -78,7 +78,7 @@ export function WelcomeModal({control}: WelcomeModalProps) {
|
|||||||
]}>
|
]}>
|
||||||
<FocusScope.FocusScope asChild loop trapped>
|
<FocusScope.FocusScope asChild loop trapped>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={flatten([
|
||||||
{
|
{
|
||||||
maxWidth: 800,
|
maxWidth: 800,
|
||||||
maxHeight: 600,
|
maxHeight: 600,
|
||||||
@@ -89,7 +89,7 @@ export function WelcomeModal({control}: WelcomeModalProps) {
|
|||||||
a.rounded_lg,
|
a.rounded_lg,
|
||||||
a.overflow_hidden,
|
a.overflow_hidden,
|
||||||
a.zoom_in,
|
a.zoom_in,
|
||||||
]}>
|
])}>
|
||||||
<ImageBackground
|
<ImageBackground
|
||||||
source={welcomeModalBg}
|
source={welcomeModalBg}
|
||||||
style={[a.flex_1, a.justify_center]}
|
style={[a.flex_1, a.justify_center]}
|
||||||
|
|||||||
Reference in New Issue
Block a user