Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mapmeld committed Oct 28, 2024
1 parent 23b85a3 commit c0fd90f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/app/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Box, Flex, Heading } from "@radix-ui/themes";
import { MapModeSelector } from "./MapModeSelector";
import { ColorPicker } from "./ColorPicker";
import { ResetMapButton } from "./ResetMapButton";
import { UndoRedoButton } from "./UndoRedoButton";
import { GerryDBViewSelector } from "./GerryDBViewSelector";
import { HorizontalBar } from "./charts/HorizontalBarChart";
import { useMapStore } from "@/app/store/mapStore";
Expand Down
3 changes: 2 additions & 1 deletion app/src/app/components/sidebar/UndoRedoButton.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { useMapStore } from "@/app/store/mapStore";
import { Button } from "@radix-ui/themes";
import { ResetIcon } from "@radix-ui/react-icons";
import type { TemporalState } from "zundo";

export function UndoRedoButton({ isRedo = false }) {
const mapStore = useMapStore.getState();
const mapStore = useMapStore.getState() as TemporalState;

const handleClickUndoRedo = () => {
if (isRedo) {
Expand Down

0 comments on commit c0fd90f

Please sign in to comment.