[Video] Split 'videos' gate in two (#5037)

This commit is contained in:
Samuel Newman 2024-08-30 20:53:27 +01:00 committed by GitHub
parent ab260c3599
commit c41f372b3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View file

@ -760,7 +760,7 @@ export const ComposePost = observer(function ComposePost({
) : (
<ToolbarWrapper style={[a.flex_row, a.align_center, a.gap_xs]}>
<SelectPhotoBtn gallery={gallery} disabled={!canSelectImages} />
{gate('videos') && (
{gate('video_upload') && (
<SelectVideoBtn
onSelectVideo={selectVideo}
disabled={!canSelectImages}