Skip to content

Commit 63410ff

Browse files
committed
cleaning up errors and warnings
1 parent 1613823 commit 63410ff

File tree

6 files changed

+3
-15
lines changed

6 files changed

+3
-15
lines changed

src/common/components/HueSlider/HueSlider.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ export type HueSliderProps = {
1111
export const HueSlider = (props: HueSliderProps) => {
1212
const { hue, onChange } = props;
1313

14-
const handleChange = (event: ChangeEvent<HTMLElement>) => {
15-
event.preventDefault();
16-
event.stopPropagation();
17-
onChange(Number.parseInt(event.target.value, 10));
18-
};
19-
2014
return (
2115
<span className="w-full p-2 grid grid-cols-[60px_1fr] gap-2">
2216
<Input

src/common/components/TextInput/TextInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EditorContent, useEditor, type Editor } from "@tiptap/react";
1+
import { EditorContent, useEditor } from "@tiptap/react";
22
import { getExtensions } from "./TextInput.config";
33
import "./TextInput.css";
44
import { parseSpark } from "../../../scripts/utils/stringUtils";

src/container/SearchInput/SearchInput.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { TextInput } from "../../common/components/TextInput/TextInput";
2-
import {
3-
updateQueryDebounced,
4-
useQueryStore,
5-
} from "../../scripts/store/queryStore";
2+
import { updateQueryDebounced } from "../../scripts/store/queryStore";
63

74
export const SearchInputEditorAccessorId = "search";
85

src/container/SparkList/SparkItem/SparkItem.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ import { sparkService } from "../../../scripts/db/SparkService";
77
import { TrashIcon } from "../../../assets/icons/TrashIcon";
88
import {
99
AlertDialog,
10-
AlertDialogAction,
1110
AlertDialogCancel,
1211
AlertDialogContent,
1312
AlertDialogDescription,
1413
AlertDialogFooter,
1514
AlertDialogHeader,
1615
AlertDialogTitle,
17-
AlertDialogTrigger,
1816
} from "../../../common/components/shadcn/alert-dialog";
1917
import { Button } from "../../../common/components/shadcn/button";
2018

src/container/TagEditor/TagEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const TagEditor = () => {
7878
</label>
7979
<Button
8080
variant={"outline"}
81-
onClick={(e) =>
81+
onClick={() =>
8282
setShowUsageCount(!showUsageCount)
8383
}
8484
>

src/scripts/db/SparkService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
} from "../../interfaces/Spark";
88
import { parseSpark, stringToHue } from "../utils/stringUtils";
99
import { tagService, type TagMap } from "./TagService";
10-
import type { Tag } from "../../interfaces/Tag";
1110
import { updateHtmlTagsOfSpark } from "../utils/sparkUtils";
1211

1312
export class SparkService {

0 commit comments

Comments
 (0)