From 2fb42408a2a0b0730b8f6ab2e9f329c7801cfd82 Mon Sep 17 00:00:00 2001 From: Ayoub LABIDI Date: Tue, 10 Dec 2024 14:15:45 +0100 Subject: [PATCH] Add spreadsheet config collection element type Signed-off-by: Ayoub LABIDI --- src/utils/mapper/getFileIcon.tsx | 3 +++ src/utils/types/elementType.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/src/utils/mapper/getFileIcon.tsx b/src/utils/mapper/getFileIcon.tsx index 4b4e08a0..930a71dd 100644 --- a/src/utils/mapper/getFileIcon.tsx +++ b/src/utils/mapper/getFileIcon.tsx @@ -12,6 +12,7 @@ import { Photo as PhotoIcon, PhotoLibrary as PhotoLibraryIcon, Settings as SettingsIcon, + TableView as TableViewIcon, } from '@mui/icons-material'; import { SxProps, Theme } from '@mui/material'; import { ElementType } from '../types/elementType'; @@ -37,6 +38,8 @@ export function getFileIcon(type: ElementType, style: SxProps) { return ; case ElementType.SPREADSHEET_CONFIG: return ; + case ElementType.SPREADSHEET_CONFIG_COLLECTION: + return ; case ElementType.DIRECTORY: // to easily use in TreeView we do not give icons for directories return undefined; diff --git a/src/utils/types/elementType.ts b/src/utils/types/elementType.ts index 039d42bf..91494ac5 100644 --- a/src/utils/types/elementType.ts +++ b/src/utils/types/elementType.ts @@ -21,6 +21,7 @@ export enum ElementType { SENSITIVITY_PARAMETERS = 'SENSITIVITY_PARAMETERS', SHORT_CIRCUIT_PARAMETERS = 'SHORT_CIRCUIT_PARAMETERS', SPREADSHEET_CONFIG = 'SPREADSHEET_CONFIG', + SPREADSHEET_CONFIG_COLLECTION = 'SPREADSHEET_CONFIG_COLLECTION', } export type ElementExistsType = (directory: UUID, value: string, elementType: ElementType) => Promise;