Fix accessibilityrole error
This commit is contained in:
@@ -157,7 +157,7 @@ export function ComposerPrompt() {
|
|||||||
return (
|
return (
|
||||||
<Pressable
|
<Pressable
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
accessibilityRole="button"
|
accessibilityRole={IS_NATIVE ? 'button' : undefined} // In HTML, <button> cannot be a descendant of <button>.
|
||||||
accessibilityLabel={_(msg`Compose new post`)}
|
accessibilityLabel={_(msg`Compose new post`)}
|
||||||
accessibilityHint={_(msg`Opens the post composer`)}
|
accessibilityHint={_(msg`Opens the post composer`)}
|
||||||
onPointerEnter={() => setHover(true)}
|
onPointerEnter={() => setHover(true)}
|
||||||
|
|||||||
Reference in New Issue
Block a user