From 24679d5fe3d9f32593e7f9a6e5946cfb5b3e8434 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 21 Oct 2024 10:56:54 -0500 Subject: Fix NavSignupCard on web (#5813) --- src/components/AppLanguageDropdown.tsx | 4 ++-- src/components/AppLanguageDropdown.web.tsx | 5 +++-- src/view/shell/NavSignupCard.tsx | 4 ++-- src/view/shell/desktop/LeftNav.tsx | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/components/AppLanguageDropdown.tsx b/src/components/AppLanguageDropdown.tsx index 6170ab2e2..82ca4999e 100644 --- a/src/components/AppLanguageDropdown.tsx +++ b/src/components/AppLanguageDropdown.tsx @@ -7,10 +7,10 @@ import {sanitizeAppLanguageSetting} from '#/locale/helpers' import {APP_LANGUAGES} from '#/locale/languages' import {useLanguagePrefs, useLanguagePrefsApi} from '#/state/preferences' import {resetPostsFeedQueries} from '#/state/queries/post-feed' -import {atoms as a, useTheme} from '#/alf' +import {atoms as a, useTheme, ViewStyleProp} from '#/alf' import {ChevronBottom_Stroke2_Corner0_Rounded as ChevronDown} from '#/components/icons/Chevron' -export function AppLanguageDropdown() { +export function AppLanguageDropdown(_props: ViewStyleProp) { const t = useTheme() const queryClient = useQueryClient() diff --git a/src/components/AppLanguageDropdown.web.tsx b/src/components/AppLanguageDropdown.web.tsx index 00a7b5301..d51b53ac0 100644 --- a/src/components/AppLanguageDropdown.web.tsx +++ b/src/components/AppLanguageDropdown.web.tsx @@ -6,11 +6,11 @@ import {sanitizeAppLanguageSetting} from '#/locale/helpers' import {APP_LANGUAGES} from '#/locale/languages' import {useLanguagePrefs, useLanguagePrefsApi} from '#/state/preferences' import {resetPostsFeedQueries} from '#/state/queries/post-feed' -import {atoms as a, useTheme} from '#/alf' +import {atoms as a, useTheme, ViewStyleProp} from '#/alf' import {ChevronBottom_Stroke2_Corner0_Rounded as ChevronDown} from '#/components/icons/Chevron' import {Text} from '#/components/Typography' -export function AppLanguageDropdown() { +export function AppLanguageDropdown({style}: ViewStyleProp) { const t = useTheme() const queryClient = useQueryClient() @@ -40,6 +40,7 @@ export function AppLanguageDropdown() { // We don't have hitSlop here to increase the tap region, // alternative is negative margins. {height: 32, marginVertical: -((32 - 14) / 2)}, + style, ]}> { - - + + ) diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index ecd00a919..1a9ce2005 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -353,7 +353,7 @@ export function DesktopLeftNav() { {hasSession ? ( ) : isDesktop ? ( - + ) : null} -- cgit 1.4.1