This commit is contained in:
Eric Bailey
2024-11-26 10:28:13 -06:00
parent 33181ab8ce
commit 533ebf5daa
3 changed files with 12 additions and 8 deletions
@@ -28,7 +28,11 @@ import {InlineLinkText, Link} from '#/components/Link'
import {Loader} from '#/components/Loader' import {Loader} from '#/components/Loader'
import {Text} from '#/components/Typography' import {Text} from '#/components/Typography'
export function BlueskyPlus({control}: {control: Dialog.DialogControlProps}) { export function BlueskyPlusCore({
control,
}: {
control: Dialog.DialogControlProps
}) {
return ( return (
<Dialog.Outer control={control}> <Dialog.Outer control={control}>
<Dialog.Handle /> <Dialog.Handle />
+3 -3
View File
@@ -1,5 +1,5 @@
import React from 'react' import React from 'react'
import {RefreshControl,TextStyle, View} from 'react-native' import {RefreshControl, TextStyle, View} from 'react-native'
import {msg, Trans} from '@lingui/macro' import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react' import {useLingui} from '@lingui/react'
import {NativeStackScreenProps} from '@react-navigation/native-stack' import {NativeStackScreenProps} from '@react-navigation/native-stack'
@@ -23,7 +23,7 @@ import {atoms as a, tokens, useTheme} from '#/alf'
import {Admonition} from '#/components/Admonition' import {Admonition} from '#/components/Admonition'
import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {Button, ButtonIcon, ButtonText} from '#/components/Button'
import {useDialogControl} from '#/components/Dialog' import {useDialogControl} from '#/components/Dialog'
import {BlueskyPlus} from '#/components/dialogs/BlueskyPlus' import {BlueskyPlusCore} from '#/components/dialogs/BlueskyPlusCore'
import {Divider} from '#/components/Divider' import {Divider} from '#/components/Divider'
import {GradientFill} from '#/components/GradientFill' import {GradientFill} from '#/components/GradientFill'
import {AndroidLogo} from '#/components/icons/AndroidLogo' import {AndroidLogo} from '#/components/icons/AndroidLogo'
@@ -243,7 +243,7 @@ function Purchase() {
</ButtonText> </ButtonText>
<ButtonIcon icon={Plus} position="right" style={[{color: 'white'}]} /> <ButtonIcon icon={Plus} position="right" style={[{color: 'white'}]} />
</Button> </Button>
<BlueskyPlus control={control} /> <BlueskyPlusCore control={control} />
</> </>
) )
} }
+4 -4
View File
@@ -8,19 +8,19 @@ import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
import {useKawaiiMode} from '#/state/preferences/kawaii' import {useKawaiiMode} from '#/state/preferences/kawaii'
import {usePurchases} from '#/state/purchases' import {usePurchases} from '#/state/purchases'
import {EntitlementId} from '#/state/purchases/types' import {EntitlementId} from '#/state/purchases/types'
import {Nux, useNux, useResetNuxs,useSaveNux} from '#/state/queries/nuxs' import {Nux, useNux, useResetNuxs, useSaveNux} from '#/state/queries/nuxs'
import {useSession} from '#/state/session' import {useSession} from '#/state/session'
import {DesktopFeeds} from '#/view/shell/desktop/Feeds' import {DesktopFeeds} from '#/view/shell/desktop/Feeds'
import {DesktopSearch} from '#/view/shell/desktop/Search' import {DesktopSearch} from '#/view/shell/desktop/Search'
import {atoms as a, tokens, useTheme, web} from '#/alf' import {atoms as a, tokens, useTheme, web} from '#/alf'
import {Button} from '#/components/Button' import {Button} from '#/components/Button'
import {useDialogControl} from '#/components/Dialog' import {useDialogControl} from '#/components/Dialog'
import {BlueskyPlus} from '#/components/dialogs/BlueskyPlus' import {BlueskyPlusCore} from '#/components/dialogs/BlueskyPlusCore'
import {Divider} from '#/components/Divider' import {Divider} from '#/components/Divider'
import {GradientFill} from '#/components/GradientFill' import {GradientFill} from '#/components/GradientFill'
import {Full as BlueskyPlusLogo} from '#/components/icons/BlueskyPlus' import {Full as BlueskyPlusLogo} from '#/components/icons/BlueskyPlus'
import {SquareArrowTopRight_Stroke2_Corner0_Rounded as SquareArrowTopRight} from '#/components/icons/SquareArrowTopRight' import {SquareArrowTopRight_Stroke2_Corner0_Rounded as SquareArrowTopRight} from '#/components/icons/SquareArrowTopRight'
import {createStaticClick,InlineLinkText} from '#/components/Link' import {createStaticClick, InlineLinkText} from '#/components/Link'
import {ProgressGuideList} from '#/components/ProgressGuide/List' import {ProgressGuideList} from '#/components/ProgressGuide/List'
import {Text} from '#/components/Typography' import {Text} from '#/components/Typography'
import {IS_DEV} from '#/env' import {IS_DEV} from '#/env'
@@ -190,7 +190,7 @@ export function DesktopRightNav({routeName}: {routeName: string}) {
</> </>
)} )}
<BlueskyPlus control={bskyPlusDialogControl} /> <BlueskyPlusCore control={bskyPlusDialogControl} />
<Text style={[a.leading_snug, t.atoms.text_contrast_low]}> <Text style={[a.leading_snug, t.atoms.text_contrast_low]}>
{hasSession && ( {hasSession && (