Move PostThreadComposePrompt to new home
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ import {transparentifyColor} from '#/alf/util/colorGeneration'
|
|||||||
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
export function PostThreadComposePrompt({
|
export function ThreadComposePrompt({
|
||||||
onPressCompose,
|
onPressCompose,
|
||||||
style,
|
style,
|
||||||
}: {
|
}: {
|
||||||
@@ -12,9 +12,9 @@ import {useSession} from '#/state/session'
|
|||||||
import {type OnPostSuccessData} from '#/state/shell/composer'
|
import {type OnPostSuccessData} from '#/state/shell/composer'
|
||||||
import {useShellLayout} from '#/state/shell/shell-layout'
|
import {useShellLayout} from '#/state/shell/shell-layout'
|
||||||
import {useUnstablePostSource} from '#/state/unstable-post-source'
|
import {useUnstablePostSource} from '#/state/unstable-post-source'
|
||||||
import {PostThreadComposePrompt} from '#/view/com/post-thread/PostThreadComposePrompt'
|
|
||||||
import {List, type ListMethods} from '#/view/com/util/List'
|
import {List, type ListMethods} from '#/view/com/util/List'
|
||||||
import {HeaderDropdown} from '#/screens/PostThread/components/HeaderDropdown'
|
import {HeaderDropdown} from '#/screens/PostThread/components/HeaderDropdown'
|
||||||
|
import {ThreadComposePrompt} from '#/screens/PostThread/components/ThreadComposePrompt'
|
||||||
import {ThreadError} from '#/screens/PostThread/components/ThreadError'
|
import {ThreadError} from '#/screens/PostThread/components/ThreadError'
|
||||||
import {
|
import {
|
||||||
ThreadItemAnchor,
|
ThreadItemAnchor,
|
||||||
@@ -455,7 +455,7 @@ export function PostThread({uri}: {uri: string}) {
|
|||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
{gtMobile && (
|
{gtMobile && (
|
||||||
<PostThreadComposePrompt onPressCompose={onReplyToAnchor} />
|
<ThreadComposePrompt onPressCompose={onReplyToAnchor} />
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
@@ -586,7 +586,7 @@ function MobileComposePrompt({onPressReply}: {onPressReply: () => unknown}) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Animated.View style={[a.fixed, a.left_0, a.right_0, animatedStyle]}>
|
<Animated.View style={[a.fixed, a.left_0, a.right_0, animatedStyle]}>
|
||||||
<PostThreadComposePrompt onPressCompose={onPressReply} />
|
<ThreadComposePrompt onPressCompose={onPressReply} />
|
||||||
</Animated.View>
|
</Animated.View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,9 +80,9 @@ import {useProfileFollowMutationQueue} from '#/state/queries/profile'
|
|||||||
import {useSession} from '#/state/session'
|
import {useSession} from '#/state/session'
|
||||||
import {useSetMinimalShellMode} from '#/state/shell'
|
import {useSetMinimalShellMode} from '#/state/shell'
|
||||||
import {useSetLightStatusBar} from '#/state/shell/light-status-bar'
|
import {useSetLightStatusBar} from '#/state/shell/light-status-bar'
|
||||||
import {PostThreadComposePrompt} from '#/view/com/post-thread/PostThreadComposePrompt'
|
|
||||||
import {List} from '#/view/com/util/List'
|
import {List} from '#/view/com/util/List'
|
||||||
import {UserAvatar} from '#/view/com/util/UserAvatar'
|
import {UserAvatar} from '#/view/com/util/UserAvatar'
|
||||||
|
import {ThreadComposePrompt} from '#/screens/PostThread/components/ThreadComposePrompt'
|
||||||
import {Header} from '#/screens/VideoFeed/components/Header'
|
import {Header} from '#/screens/VideoFeed/components/Header'
|
||||||
import {atoms as a, ios, platform, ThemeProvider, useTheme} from '#/alf'
|
import {atoms as a, ios, platform, ThemeProvider, useTheme} from '#/alf'
|
||||||
import {setSystemUITheme} from '#/alf/util/systemUI'
|
import {setSystemUITheme} from '#/alf/util/systemUI'
|
||||||
@@ -883,7 +883,7 @@ function Overlay({
|
|||||||
player={player}
|
player={player}
|
||||||
seekingAnimationSV={seekingAnimationSV}
|
seekingAnimationSV={seekingAnimationSV}
|
||||||
scrollGesture={scrollGesture}>
|
scrollGesture={scrollGesture}>
|
||||||
<PostThreadComposePrompt
|
<ThreadComposePrompt
|
||||||
onPressCompose={onPressReply}
|
onPressCompose={onPressReply}
|
||||||
style={[a.pt_md, a.pb_sm]}
|
style={[a.pt_md, a.pb_sm]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user