From eccc67b300dcfd9e5e6d3181637c4a1bbd149f72 Mon Sep 17 00:00:00 2001 From: Patrick O'Sullivan Date: Mon, 9 Dec 2024 08:46:07 -0600 Subject: [PATCH] desktop: fix welcome sheet image, remove duplicate web component for welcome sheet --- packages/ui/src/components/WelcomeSheet.tsx | 8 +- .../ui/src/components/WelcomeSheet.web.tsx | 111 ------------------ 2 files changed, 6 insertions(+), 113 deletions(-) delete mode 100644 packages/ui/src/components/WelcomeSheet.web.tsx diff --git a/packages/ui/src/components/WelcomeSheet.tsx b/packages/ui/src/components/WelcomeSheet.tsx index 29abd49c73..08bc67c7e3 100644 --- a/packages/ui/src/components/WelcomeSheet.tsx +++ b/packages/ui/src/components/WelcomeSheet.tsx @@ -1,7 +1,7 @@ import React, { useCallback } from 'react'; import { Image } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; -import { Text, View, XStack, YStack } from 'tamagui'; +import { Text, View, XStack, YStack, isWeb } from 'tamagui'; import { Icon } from './Icon'; import { Sheet } from './Sheet'; @@ -41,7 +41,11 @@ function WelcomeSheetComponent({ diff --git a/packages/ui/src/components/WelcomeSheet.web.tsx b/packages/ui/src/components/WelcomeSheet.web.tsx deleted file mode 100644 index 302751b0c6..0000000000 --- a/packages/ui/src/components/WelcomeSheet.web.tsx +++ /dev/null @@ -1,111 +0,0 @@ -import React, { useCallback } from 'react'; -import { useSafeAreaInsets } from 'react-native-safe-area-context'; -import { Text, View, XStack, YStack } from 'tamagui'; - -import { Icon } from './Icon'; -import { Sheet } from './Sheet'; - -function WelcomeSheetComponent({ - open, - onOpenChange, -}: { - open: boolean; - onOpenChange: (open: boolean) => void; -}) { - const handleDismiss = useCallback(() => { - onOpenChange(false); - }, [onOpenChange]); - - const inset = useSafeAreaInsets(); - - return ( - - - - - - - - - - - Welcome to TM - - A messenger you can finally trust. - - - - - - - - - - Control every bit - - Whatever you do, say, and make on Tlon is yours to keep - - - - - - - - - - - From now until forever - - With Tlon you can always take your data with you and continue - using it elsewhere - - - - - - - - - - - Connect with calm - - Tlon is designed to maximize genuine connection, not addictive - engagement - - - - - - - - ); -} - -export const WelcomeSheet = React.memo(WelcomeSheetComponent);