mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-09 18:33:05 +02:00
#598 - fix folders and filters default value
This commit is contained in:
@@ -12,14 +12,14 @@ export interface IFilterProps {
|
||||
onClick: (item: string | null) => void;
|
||||
}
|
||||
|
||||
const DEFAULT_VALUE = l10n.t(LocalizationKey.dashboardHeaderFilterDefault);
|
||||
|
||||
export const Filter: React.FunctionComponent<IFilterProps> = ({
|
||||
label,
|
||||
activeItem,
|
||||
items,
|
||||
onClick
|
||||
}: React.PropsWithChildren<IFilterProps>) => {
|
||||
const DEFAULT_VALUE = l10n.t(LocalizationKey.dashboardHeaderFilterDefault);
|
||||
|
||||
if (!items || items.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -8,11 +8,10 @@ import { LocalizationKey } from '../../../localization';
|
||||
|
||||
export interface IFoldersProps { }
|
||||
|
||||
const DEFAULT_TYPE = l10n.t(LocalizationKey.dashboardHeaderFoldersDefault);
|
||||
|
||||
export const Folders: React.FunctionComponent<
|
||||
IFoldersProps
|
||||
> = ({ }: React.PropsWithChildren<IFoldersProps>) => {
|
||||
const DEFAULT_TYPE = l10n.t(LocalizationKey.dashboardHeaderFoldersDefault);
|
||||
const [crntFolder, setCrntFolder] = useRecoilState(FolderAtom);
|
||||
const settings = useRecoilValue(SettingsSelector);
|
||||
const contentFolders = settings?.contentFolders || [];
|
||||
|
||||
Reference in New Issue
Block a user