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