diff --git a/l10n/bundle.l10n.json b/l10n/bundle.l10n.json index d3dfda6f..8a0bbae0 100644 --- a/l10n/bundle.l10n.json +++ b/l10n/bundle.l10n.json @@ -215,7 +215,7 @@ "dashboard.media.media.dragAndDrop": "You can also drag and drop images from your desktop and select them once uploaded.", "dashboard.media.media.folder.upload": "Upload to {0}", "dashboard.media.media.folder.default": "No folder selected, files you drop will be added to the {0} folder", - "dashboard.media.media.placeholder": "No media files to show. You can drag & drop new files by holding your [shift] key.", + "dashboard.media.media.placeholder": "No media files to show. You can drag&drop new files by holding your [shift] key.", "dashboard.media.media.contentFolder": "Content folder", "dashboard.media.media.publicFolder": "Public folder", diff --git a/src/dashboardWebView/components/Media/FolderItem.tsx b/src/dashboardWebView/components/Media/FolderItem.tsx index 7279f9d2..00e6b158 100644 --- a/src/dashboardWebView/components/Media/FolderItem.tsx +++ b/src/dashboardWebView/components/Media/FolderItem.tsx @@ -2,7 +2,6 @@ import { FolderIcon } from '@heroicons/react/24/solid'; import { basename, join } from 'path'; import * as React from 'react'; import { useRecoilState } from 'recoil'; -import useThemeColors from '../../hooks/useThemeColors'; import { SelectedMediaFolderAtom } from '../../state'; export interface IFolderItemProps { @@ -17,7 +16,6 @@ export const FolderItem: React.FunctionComponent = ({ staticFolder }: React.PropsWithChildren) => { const [, setSelectedFolder] = useRecoilState(SelectedMediaFolderAtom); - const { getColors } = useThemeColors(); const relFolderPath = wsFolder ? folder.replace(wsFolder, '') : folder; @@ -28,25 +26,17 @@ export const FolderItem: React.FunctionComponent = ({ return (