parent
c50a20d214
commit
30c54aa265
|
@ -420,7 +420,7 @@ export function RepostIcon({
|
||||||
size = 24,
|
size = 24,
|
||||||
strokeWidth = 1.5,
|
strokeWidth = 1.5,
|
||||||
}: {
|
}: {
|
||||||
style?: StyleProp<ViewStyle>
|
style?: StyleProp<TextStyle>
|
||||||
size?: string | number
|
size?: string | number
|
||||||
strokeWidth: number
|
strokeWidth: number
|
||||||
}) {
|
}) {
|
||||||
|
|
|
@ -29,7 +29,7 @@ export function Component({
|
||||||
<View style={[s.flex1, pal.view, styles.container]}>
|
<View style={[s.flex1, pal.view, styles.container]}>
|
||||||
<View style={s.pb20}>
|
<View style={s.pb20}>
|
||||||
<TouchableOpacity style={[styles.actionBtn]} onPress={onRepost}>
|
<TouchableOpacity style={[styles.actionBtn]} onPress={onRepost}>
|
||||||
<RepostIcon strokeWidth={2} size={24} />
|
<RepostIcon strokeWidth={2} size={24} style={s.blue3} />
|
||||||
<Text type="title-lg" style={[styles.actionBtnLabel, pal.text]}>
|
<Text type="title-lg" style={[styles.actionBtnLabel, pal.text]}>
|
||||||
{!isReposted ? 'Repost' : 'Undo repost'}
|
{!isReposted ? 'Repost' : 'Undo repost'}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
|
@ -9,12 +9,14 @@ export const Composer = observer(
|
||||||
({
|
({
|
||||||
active,
|
active,
|
||||||
replyTo,
|
replyTo,
|
||||||
|
quote,
|
||||||
onPost,
|
onPost,
|
||||||
onClose,
|
onClose,
|
||||||
}: {
|
}: {
|
||||||
active: boolean
|
active: boolean
|
||||||
winHeight: number
|
winHeight: number
|
||||||
replyTo?: ComposerOpts['replyTo']
|
replyTo?: ComposerOpts['replyTo']
|
||||||
|
quote: ComposerOpts['quote']
|
||||||
onPost?: ComposerOpts['onPost']
|
onPost?: ComposerOpts['onPost']
|
||||||
onClose: () => void
|
onClose: () => void
|
||||||
}) => {
|
}) => {
|
||||||
|
@ -30,7 +32,12 @@ export const Composer = observer(
|
||||||
return (
|
return (
|
||||||
<View style={styles.mask}>
|
<View style={styles.mask}>
|
||||||
<View style={[styles.container, pal.view]}>
|
<View style={[styles.container, pal.view]}>
|
||||||
<ComposePost replyTo={replyTo} onPost={onPost} onClose={onClose} />
|
<ComposePost
|
||||||
|
replyTo={replyTo}
|
||||||
|
quote={quote}
|
||||||
|
onPost={onPost}
|
||||||
|
onClose={onClose}
|
||||||
|
/>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|
|
@ -33,6 +33,7 @@ const ShellInner = observer(() => {
|
||||||
onClose={() => store.shell.closeComposer()}
|
onClose={() => store.shell.closeComposer()}
|
||||||
winHeight={0}
|
winHeight={0}
|
||||||
replyTo={store.shell.composerOpts?.replyTo}
|
replyTo={store.shell.composerOpts?.replyTo}
|
||||||
|
quote={store.shell.composerOpts?.quote}
|
||||||
onPost={store.shell.composerOpts?.onPost}
|
onPost={store.shell.composerOpts?.onPost}
|
||||||
/>
|
/>
|
||||||
<ModalsContainer />
|
<ModalsContainer />
|
||||||
|
|
Loading…
Reference in New Issue