Bluesky app fork with some witchin' additions 💫

Tweak `SelectMediaButton` error string, `accessibilityHint`, and comments (#8870)

* remove isNative check from accessibilityHint

* tweak grammar in error string

* prettier

* tweak comment

authored by

surfdude29 and committed by
GitHub
e91a6838 bc8e3ba3

+10 -27
+10 -27
src/view/com/composer/SelectMediaButton.tsx
··· 410 410 msg`You can only select one GIF at a time.`, 411 411 ), 412 412 [SelectedAssetError.FileTooBig]: _( 413 - msg`One or more of your selected files is too large. Maximum size is 100 MB.`, 413 + msg`One or more of your selected files are too large. Maximum size is 100 MB.`, 414 414 ), 415 415 }[error] 416 416 }) ··· 481 481 label={_( 482 482 msg({ 483 483 message: `Add media to post`, 484 - comment: `Accessibility label for button in composer to add photos or a video to a post`, 484 + comment: `Accessibility label for button in composer to add images, a video, or a GIF to a post`, 485 485 }), 486 486 )} 487 - accessibilityHint={ 488 - isNative 489 - ? _( 490 - msg({ 491 - message: `Opens device gallery to select up to ${plural( 492 - MAX_IMAGES, 493 - { 494 - other: '# images', 495 - }, 496 - )}, or a single video.`, 497 - comment: `Accessibility hint on native for button in composer to add images or a video to a post. Maximum number of images that can be selected is currently 4 but may change.`, 498 - }), 499 - ) 500 - : _( 501 - msg({ 502 - message: `Opens device gallery to select up to ${plural( 503 - MAX_IMAGES, 504 - { 505 - other: '# images', 506 - }, 507 - )}, or a single video or GIF.`, 508 - comment: `Accessibility hint on web for button in composer to add images, a video, or a GIF to a post. Maximum number of images that can be selected is currently 4 but may change.`, 509 - }), 510 - ) 511 - } 487 + accessibilityHint={_( 488 + msg({ 489 + message: `Opens device gallery to select up to ${plural(MAX_IMAGES, { 490 + other: '# images', 491 + })}, or a single video or GIF.`, 492 + comment: `Accessibility hint for button in composer to add images, a video, or a GIF to a post. Maximum number of images that can be selected is currently 4 but may change.`, 493 + }), 494 + )} 512 495 style={a.p_sm} 513 496 variant="ghost" 514 497 shape="round"