Rename quotepostDisabled
This commit is contained in:
@@ -255,7 +255,7 @@ let PostCtrls = ({
|
|||||||
onRepost={onRepost}
|
onRepost={onRepost}
|
||||||
onQuote={onQuote}
|
onQuote={onQuote}
|
||||||
big={big}
|
big={big}
|
||||||
quotepostDisabled={Boolean(post.viewer?.quotepostDisabled)}
|
embeddingDisabled={Boolean(post.viewer?.embeddingDisabled)}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
<View style={big ? a.align_center : [a.flex_1, a.align_start]}>
|
<View style={big ? a.align_center : [a.flex_1, a.align_start]}>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ interface Props {
|
|||||||
onRepost: () => void
|
onRepost: () => void
|
||||||
onQuote: () => void
|
onQuote: () => void
|
||||||
big?: boolean
|
big?: boolean
|
||||||
quotepostDisabled: boolean
|
embeddingDisabled: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
let RepostButton = ({
|
let RepostButton = ({
|
||||||
@@ -29,7 +29,7 @@ let RepostButton = ({
|
|||||||
onRepost,
|
onRepost,
|
||||||
onQuote,
|
onQuote,
|
||||||
big,
|
big,
|
||||||
quotepostDisabled,
|
embeddingDisabled,
|
||||||
}: Props): React.ReactNode => {
|
}: Props): React.ReactNode => {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
const {_} = useLingui()
|
const {_} = useLingui()
|
||||||
@@ -112,7 +112,7 @@ let RepostButton = ({
|
|||||||
: _(msg({message: `Repost`, context: 'action'}))}
|
: _(msg({message: `Repost`, context: 'action'}))}
|
||||||
</Text>
|
</Text>
|
||||||
</Button>
|
</Button>
|
||||||
{quotepostDisabled ? null : (
|
{embeddingDisabled ? null : (
|
||||||
<Button
|
<Button
|
||||||
testID="quoteBtn"
|
testID="quoteBtn"
|
||||||
style={[a.justify_start, a.px_md]}
|
style={[a.justify_start, a.px_md]}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ interface Props {
|
|||||||
onRepost: () => void
|
onRepost: () => void
|
||||||
onQuote: () => void
|
onQuote: () => void
|
||||||
big?: boolean
|
big?: boolean
|
||||||
quotepostDisabled: boolean
|
embeddingDisabled: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export const RepostButton = ({
|
export const RepostButton = ({
|
||||||
@@ -29,7 +29,7 @@ export const RepostButton = ({
|
|||||||
onRepost,
|
onRepost,
|
||||||
onQuote,
|
onQuote,
|
||||||
big,
|
big,
|
||||||
quotepostDisabled,
|
embeddingDisabled,
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
const {_} = useLingui()
|
const {_} = useLingui()
|
||||||
@@ -77,7 +77,7 @@ export const RepostButton = ({
|
|||||||
</Menu.ItemText>
|
</Menu.ItemText>
|
||||||
<Menu.ItemIcon icon={Repost} position="right" />
|
<Menu.ItemIcon icon={Repost} position="right" />
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
{quotepostDisabled ? null : (
|
{embeddingDisabled ? null : (
|
||||||
<Menu.Item
|
<Menu.Item
|
||||||
label={_(msg`Quote post`)}
|
label={_(msg`Quote post`)}
|
||||||
testID="repostDropdownQuoteBtn"
|
testID="repostDropdownQuoteBtn"
|
||||||
|
|||||||
Reference in New Issue
Block a user