Skip to content

Commit

Permalink
Merge pull request #237 from Flowpack/feature/show-upload-in-selector
Browse files Browse the repository at this point in the history
FEATURE: Allow uploads in selection mode
  • Loading branch information
Sebobo authored Jul 16, 2024
2 parents f42da9c + f6c93e0 commit 9f13e08
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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 (
<Column>
Expand Down

0 comments on commit 9f13e08

Please sign in to comment.