Procházet zdrojové kódy

Add SVG support to download options

dogukanuhn před 2 roky
rodič
revize
2650776f0a
1 změnil soubory, kde provedl 0 přidání a 3 odebrání
  1. 0 3
      src/hooks/store/useConfig.tsx

+ 0 - 3
src/hooks/store/useConfig.tsx

@@ -7,7 +7,6 @@ interface ConfigActions {
   setJson: (json: string) => void;
   setConfig: (key: keyof Config, value: unknown) => void;
   getJson: () => string;
-  setExtension: () => (extension: number) => void;
   zoomIn: () => void;
   zoomOut: () => void;
   centerView: () => void;
@@ -19,7 +18,6 @@ const initialStates = {
   layout: "RIGHT" as CanvasDirection,
   expand: true,
   hideEditor: false,
-  extension: 0,
   performanceMode: true,
   disableLoading: false,
   zoomPanPinch: undefined as ReactZoomPanPinchRef | undefined,
@@ -31,7 +29,6 @@ const useConfig = create<Config & ConfigActions>()((set, get) => ({
   ...initialStates,
   getJson: () => get().json,
   setJson: (json: string) => set({ json }),
-  setExtension: (extension: number) => set({ extension }),
   zoomIn: () => {
     const zoomPanPinch = get().zoomPanPinch;
     if (zoomPanPinch) {