From 320ed472fe56851fb9c40fae187759dd1042ed10 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 13 Feb 2026 11:18:23 -0600 Subject: [PATCH] Move components into liveNow --- .../live => features/liveNow/components}/EditLiveDialog.tsx | 0 .../live => features/liveNow/components}/GoLiveDialog.tsx | 0 .../liveNow/components}/GoLiveDisabledDialog.tsx | 0 .../live => features/liveNow/components}/LinkPreview.tsx | 0 .../live => features/liveNow/components}/LiveIndicator.tsx | 0 .../liveNow/components}/LiveStatusDialog.tsx | 6 +++--- src/screens/Profile/Header/Shell.tsx | 6 +++--- src/view/com/profile/ProfileMenu.tsx | 6 +++--- src/view/com/util/UserAvatar.tsx | 4 ++-- 9 files changed, 11 insertions(+), 11 deletions(-) rename src/{components/live => features/liveNow/components}/EditLiveDialog.tsx (100%) rename src/{components/live => features/liveNow/components}/GoLiveDialog.tsx (100%) rename src/{components/live => features/liveNow/components}/GoLiveDisabledDialog.tsx (100%) rename src/{components/live => features/liveNow/components}/LinkPreview.tsx (100%) rename src/{components/live => features/liveNow/components}/LiveIndicator.tsx (100%) rename src/{components/live => features/liveNow/components}/LiveStatusDialog.tsx (97%) diff --git a/src/components/live/EditLiveDialog.tsx b/src/features/liveNow/components/EditLiveDialog.tsx similarity index 100% rename from src/components/live/EditLiveDialog.tsx rename to src/features/liveNow/components/EditLiveDialog.tsx diff --git a/src/components/live/GoLiveDialog.tsx b/src/features/liveNow/components/GoLiveDialog.tsx similarity index 100% rename from src/components/live/GoLiveDialog.tsx rename to src/features/liveNow/components/GoLiveDialog.tsx diff --git a/src/components/live/GoLiveDisabledDialog.tsx b/src/features/liveNow/components/GoLiveDisabledDialog.tsx similarity index 100% rename from src/components/live/GoLiveDisabledDialog.tsx rename to src/features/liveNow/components/GoLiveDisabledDialog.tsx diff --git a/src/components/live/LinkPreview.tsx b/src/features/liveNow/components/LinkPreview.tsx similarity index 100% rename from src/components/live/LinkPreview.tsx rename to src/features/liveNow/components/LinkPreview.tsx diff --git a/src/components/live/LiveIndicator.tsx b/src/features/liveNow/components/LiveIndicator.tsx similarity index 100% rename from src/components/live/LiveIndicator.tsx rename to src/features/liveNow/components/LiveIndicator.tsx diff --git a/src/components/live/LiveStatusDialog.tsx b/src/features/liveNow/components/LiveStatusDialog.tsx similarity index 97% rename from src/components/live/LiveStatusDialog.tsx rename to src/features/liveNow/components/LiveStatusDialog.tsx index 122ef5f1b9..a003673a4f 100644 --- a/src/components/live/LiveStatusDialog.tsx +++ b/src/features/liveNow/components/LiveStatusDialog.tsx @@ -17,15 +17,15 @@ import {android, atoms as a, platform, tokens, useTheme, web} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfoIcon} from '#/components/icons/CircleInfo' +import {Globe_Stroke2_Corner0_Rounded} from '#/components/icons/Globe' +import {SquareArrowTopRight_Stroke2_Corner0_Rounded as SquareArrowTopRightIcon} from '#/components/icons/SquareArrowTopRight' import {createStaticClick, SimpleInlineLinkText} from '#/components/Link' import {useGlobalReportDialogControl} from '#/components/moderation/ReportDialog' import * as ProfileCard from '#/components/ProfileCard' import {Text} from '#/components/Typography' import {useAnalytics} from '#/analytics' +import {LiveIndicator} from '#/features/liveNow/components/LiveIndicator' import type * as bsky from '#/types/bsky' -import {Globe_Stroke2_Corner0_Rounded} from '../icons/Globe' -import {SquareArrowTopRight_Stroke2_Corner0_Rounded as SquareArrowTopRightIcon} from '../icons/SquareArrowTopRight' -import {LiveIndicator} from './LiveIndicator' export function LiveStatusDialog({ control, diff --git a/src/screens/Profile/Header/Shell.tsx b/src/screens/Profile/Header/Shell.tsx index d195a668dd..ae7c146b8c 100644 --- a/src/screens/Profile/Header/Shell.tsx +++ b/src/screens/Profile/Header/Shell.tsx @@ -27,14 +27,14 @@ import {atoms as a, platform, useTheme} from '#/alf' import {Button} from '#/components/Button' import {useDialogControl} from '#/components/Dialog' import {ArrowLeft_Stroke2_Corner0_Rounded as ArrowLeftIcon} from '#/components/icons/Arrow' -import {EditLiveDialog} from '#/components/live/EditLiveDialog' -import {LiveIndicator} from '#/components/live/LiveIndicator' -import {LiveStatusDialog} from '#/components/live/LiveStatusDialog' import {LabelsOnMe} from '#/components/moderation/LabelsOnMe' import {ProfileHeaderAlerts} from '#/components/moderation/ProfileHeaderAlerts' import {useAnalytics} from '#/analytics' import {IS_IOS} from '#/env' import {useActorStatus} from '#/features/liveNow' +import {EditLiveDialog} from '#/features/liveNow/components/EditLiveDialog' +import {LiveIndicator} from '#/features/liveNow/components/LiveIndicator' +import {LiveStatusDialog} from '#/features/liveNow/components/LiveStatusDialog' import {GrowableAvatar} from './GrowableAvatar' import {GrowableBanner} from './GrowableBanner' import {StatusBarShadow} from './StatusBarShadow' diff --git a/src/view/com/profile/ProfileMenu.tsx b/src/view/com/profile/ProfileMenu.tsx index e4ac1ccaaf..76b58fb718 100644 --- a/src/view/com/profile/ProfileMenu.tsx +++ b/src/view/com/profile/ProfileMenu.tsx @@ -45,9 +45,6 @@ import { import {PlusLarge_Stroke2_Corner0_Rounded as Plus} from '#/components/icons/Plus' import {SpeakerVolumeFull_Stroke2_Corner0_Rounded as Unmute} from '#/components/icons/Speaker' import {StarterPack} from '#/components/icons/StarterPack' -import {EditLiveDialog} from '#/components/live/EditLiveDialog' -import {GoLiveDialog} from '#/components/live/GoLiveDialog' -import {GoLiveDisabledDialog} from '#/components/live/GoLiveDisabledDialog' import * as Menu from '#/components/Menu' import { ReportDialog, @@ -60,6 +57,9 @@ import {VerificationRemovePrompt} from '#/components/verification/VerificationRe import {useAnalytics} from '#/analytics' import {IS_WEB} from '#/env' import {useActorStatus, useLiveNowConfig} from '#/features/liveNow' +import {EditLiveDialog} from '#/features/liveNow/components/EditLiveDialog' +import {GoLiveDialog} from '#/features/liveNow/components/GoLiveDialog' +import {GoLiveDisabledDialog} from '#/features/liveNow/components/GoLiveDisabledDialog' import {Dot} from '#/features/nuxs/components/Dot' import {Gradient} from '#/features/nuxs/components/Gradient' import {useDevMode} from '#/storage/hooks/dev-mode' diff --git a/src/view/com/util/UserAvatar.tsx b/src/view/com/util/UserAvatar.tsx index 4c2ca2c528..6acbc6506e 100644 --- a/src/view/com/util/UserAvatar.tsx +++ b/src/view/com/util/UserAvatar.tsx @@ -46,14 +46,14 @@ import { import {StreamingLive_Stroke2_Corner0_Rounded as LibraryIcon} from '#/components/icons/StreamingLive' import {Trash_Stroke2_Corner0_Rounded as TrashIcon} from '#/components/icons/Trash' import {Link} from '#/components/Link' -import {LiveIndicator} from '#/components/live/LiveIndicator' -import {LiveStatusDialog} from '#/components/live/LiveStatusDialog' import {MediaInsetBorder} from '#/components/MediaInsetBorder' import * as Menu from '#/components/Menu' import {ProfileHoverCard} from '#/components/ProfileHoverCard' import {useAnalytics} from '#/analytics' import {IS_ANDROID, IS_NATIVE, IS_WEB, IS_WEB_TOUCH_DEVICE} from '#/env' import {useActorStatus} from '#/features/liveNow' +import {LiveIndicator} from '#/features/liveNow/components/LiveIndicator' +import {LiveStatusDialog} from '#/features/liveNow/components/LiveStatusDialog' import type * as bsky from '#/types/bsky' export type UserAvatarType = 'user' | 'algo' | 'list' | 'labeler'