From f6c93e0531e7b9548bf2a2ee75a833d2146991d7 Mon Sep 17 00:00:00 2001 From: Sebastian Helzle Date: Mon, 15 Jul 2024 16:48:46 +0200 Subject: [PATCH] FEATURE: Allow uploads in selection mode Resolves: #222 --- .../src/components/SideBarLeft/SideBarLeft.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Resources/Private/JavaScript/media-module/src/components/SideBarLeft/SideBarLeft.tsx b/Resources/Private/JavaScript/media-module/src/components/SideBarLeft/SideBarLeft.tsx index 2f5888bb6..418e99f24 100644 --- a/Resources/Private/JavaScript/media-module/src/components/SideBarLeft/SideBarLeft.tsx +++ b/Resources/Private/JavaScript/media-module/src/components/SideBarLeft/SideBarLeft.tsx @@ -1,19 +1,12 @@ import React from 'react'; -import { useMediaUi } from '@media-ui/core'; import { Column } from '@media-ui/core/src/components'; import { UploadButton } from '@media-ui/feature-asset-upload/src/components'; import { AssetCollectionTree } from '@media-ui/feature-asset-collections'; import { AssetSourceDescription, AssetSourceList } from '@media-ui/feature-asset-sources'; const SideBarLeft: React.FC = () => { - const { selectionMode } = useMediaUi(); - const components = [ - !selectionMode && UploadButton, - AssetSourceList, - AssetCollectionTree, - AssetSourceDescription, - ].filter(Boolean); + const components = [UploadButton, AssetSourceList, AssetCollectionTree, AssetSourceDescription].filter(Boolean); return (