From a9b9cf6bf50f08723896659634f2e6afc17bcd42 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 29 Apr 2026 00:37:56 +0200 Subject: chore: switch from biome to eslint + prettier; fix ton of lint issues --- .../editor/panels/properties/stores/properties-store.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps/web/src/components/editor/panels/properties/stores') diff --git a/apps/web/src/components/editor/panels/properties/stores/properties-store.ts b/apps/web/src/components/editor/panels/properties/stores/properties-store.ts index bd57d4b0..f6304349 100644 --- a/apps/web/src/components/editor/panels/properties/stores/properties-store.ts +++ b/apps/web/src/components/editor/panels/properties/stores/properties-store.ts @@ -2,17 +2,18 @@ import { create } from "zustand"; interface PropertiesState { activeTabPerType: Record; - setActiveTab: (elementType: string, tabId: string) => void; + setActiveTab: (args: { elementType: string; tabId: string }) => void; isTransformScaleLocked: boolean; - setTransformScaleLocked: (locked: boolean) => void; + setTransformScaleLocked: (args: { locked: boolean }) => void; } export const usePropertiesStore = create()((set) => ({ activeTabPerType: {}, - setActiveTab: (elementType, tabId) => + setActiveTab: ({ elementType, tabId }) => set((state) => ({ activeTabPerType: { ...state.activeTabPerType, [elementType]: tabId }, })), isTransformScaleLocked: false, - setTransformScaleLocked: (locked) => set({ isTransformScaleLocked: locked }), + setTransformScaleLocked: ({ locked }) => + set({ isTransformScaleLocked: locked }), })); -- cgit v1.3.1