From 08fa02302fa4e6dea85d06a784685348a921b797 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 18 Jun 2024 12:08:26 -0500 Subject: [PATCH] Remove unused file --- src/components/StarterPack/NewskieDialog.tsx | 76 -------------------- 1 file changed, 76 deletions(-) delete mode 100644 src/components/StarterPack/NewskieDialog.tsx diff --git a/src/components/StarterPack/NewskieDialog.tsx b/src/components/StarterPack/NewskieDialog.tsx deleted file mode 100644 index 6473d8df61..0000000000 --- a/src/components/StarterPack/NewskieDialog.tsx +++ /dev/null @@ -1,76 +0,0 @@ -import React from 'react' -import {Pressable, View} from 'react-native' -import {AppBskyActorDefs, AppBskyGraphStarterpack} from '@atproto/api' -import {msg, Trans} from '@lingui/macro' -import {useLingui} from '@lingui/react' - -import {useGetTimeAgo} from '#/lib/hooks/useTimeAgo' -import {HITSLOP_10} from 'lib/constants' -import {isNative} from 'platform/detection' -import {useSession} from 'state/session' -import {atoms as a} from '#/alf' -import * as Dialog from '#/components/Dialog' -import {useDialogControl} from '#/components/Dialog' -import {Newskie} from '#/components/icons/Newskie' -import {Text} from '#/components/Typography' - -export function NewskieDialog({ - profile, -}: { - profile: AppBskyActorDefs.ProfileViewDetailed -}) { - const {_} = useLingui() - const {currentAccount} = useSession() - const control = useDialogControl() - const {joinedViaStarterPack} = profile - const profileName = profile.displayName || `@${profile.handle}` - const timeAgo = useGetTimeAgo() - - if (!profile.createdAt) return null - - return ( - <> - - - - - - - - - - Say hello! - - - {AppBskyGraphStarterpack.isRecord( - joinedViaStarterPack?.record, - ) ? ( - - {profileName} joined Bluesky{' '} - {timeAgo(profile.createdAt, {format: 'long'})} ago with{' '} - {joinedViaStarterPack?.creator.did === currentAccount?.did - ? 'your' - : `${joinedViaStarterPack?.creator.displayName}'s` || - `@${joinedViaStarterPack?.creator.handle}'s`}{' '} - starter pack. - - ) : ( - - {profileName} recently joined Bluesky{' '} - {timeAgo(profile.createdAt)} ago - - )} - - - - - - ) -}