Skip to content

Commit 2bfefe3

Browse files
committed
comments: use const
1 parent b6ca9a7 commit 2bfefe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/editor/actions/useCellActionButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { Switch } from "@/components/ui/switch";
3939
import { toast } from "@/components/ui/use-toast";
4040
import { aiCompletionCellAtom } from "@/core/ai/state";
4141
import { maybeAddMarimoImport } from "@/core/cells/add-missing-import";
42-
import { hasOnlyOneCellAtom, useCellActions } from "@/core/cells/cells";
42+
import { hasOnlyOneCellAtom, useCellActions, SETUP_CELL_ID } from "@/core/cells/cells";
4343
import type { CellId } from "@/core/cells/ids";
4444
import type { CellData } from "@/core/cells/types";
4545
import { formatEditorViews } from "@/core/codemirror/format";
@@ -136,7 +136,7 @@ export function useCellActionButtons({ cell, closePopover }: Props) {
136136
}
137137
};
138138

139-
const isSetupCell = cellId === "setup";
139+
const isSetupCell = cellId === SETUP_CELL_ID;
140140

141141
// Actions
142142
const actions: ActionButton[][] = [

0 commit comments

Comments
 (0)