Skip to content

Commit

Permalink
šŸš€ refactor: #38 panelPlaceMode恮State悒Store恫ē§»č”Œ
Browse files Browse the repository at this point in the history
  • Loading branch information
Suke-H committed Feb 5, 2025
1 parent 4265446 commit ca0c752
Show file tree
Hide file tree
Showing 7 changed files with 322 additions and 200 deletions.
6 changes: 1 addition & 5 deletions frontend/src/components/editor/cell-type-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ export const CellTypeSelector: React.FC = () => {
(state: RootState) => state.cellType.selectedCellType
);

const handleCellTypeChange = (type: CellDefinitions) => {
dispatch(changeCellType(type));
};

return (
<Card className="w-full max-w-32 mx-auto bg-[#B3B9D1]">
<CardHeader>
Expand All @@ -32,7 +28,7 @@ export const CellTypeSelector: React.FC = () => {
? "text-black"
: "text-white"
} truncate`}
onClick={() => handleCellTypeChange(type)}
onClick={() => dispatch(changeCellType(type))}
>
{CELL_DEFINITIONS[type].label}
</Button>
Expand Down
Loading

0 comments on commit ca0c752

Please sign in to comment.