Skip to content

Commit

Permalink
attempt: fix hideTrails option
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Aug 19, 2024
1 parent a1d6c99 commit 82d495c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .tkb
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
"title": "Done",
"tasksIds": []
}
]
}
],
"hideTrails": 1
}
2 changes: 1 addition & 1 deletion extension/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ export interface BoardType {
columns: ColumnType[];
tasks: { [key: string]: TaskType };
scope: string;
hideTrails?: boolean;
hideTrails?: number;
}
2 changes: 1 addition & 1 deletion src/components/drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function Drawer({ open, scope }: { open: boolean; scope: string }
id="trails"
type="checkbox"
checked={!state?.hideTrails}
onChange={() => setState({ ...state, hideTrails: !state.hideTrails })}
onChange={() => setState({ ...state, hideTrails: (state.hideTrails! + 1) % 2 })}
/>
{" "}
Show mouse trails?
Expand Down
2 changes: 1 addition & 1 deletion src/utils/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { nanoid } from "nanoid";
export const taskId = "task-" + nanoid();
export const defaultBoard: BoardType = {
scope: "",
hideTrails: true,
hideTrails: 1,
tasks: {
[taskId]: {
id: taskId,
Expand Down

0 comments on commit 82d495c

Please sign in to comment.