Skip to content

Commit 629d2e3

Browse files
committed
chore: Lockfile maintenance
1 parent a5fc6e3 commit 629d2e3

6 files changed

Lines changed: 47 additions & 89 deletions

File tree

bun.lock

Lines changed: 40 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/routes/search/fragments/save-filter-dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Input } from "components/ui/input"
55
import { InputLabel } from "components/ui/input-label"
66
import { useObjectState } from "hooks/use-object-state"
77

8-
import { Filter, savedFilters } from "../search-data"
8+
import { savedFilters } from "../search-data"
99
import { SearchFilterInput } from "./search-filter-input"
1010

1111
interface SaveFilterDialogProps {
@@ -14,7 +14,7 @@ interface SaveFilterDialogProps {
1414
}
1515

1616
export const SaveFilterDialog = ({ value, onClose }: SaveFilterDialogProps) => {
17-
const [filter, updateFilter] = useObjectState<Omit<Filter, "id">>({
17+
const [filter, updateFilter] = useObjectState({
1818
name: "",
1919
value,
2020
})

src/app/routes/search/fragments/search-table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useEffect, useMemo, useState } from "react"
22

33
import { t } from "@lingui/core/macro"
44

5-
import { PageRange, Pagination } from "components/ui/pagination"
5+
import { Pagination } from "components/ui/pagination"
66
import { TimeEntry } from "data/time-entries"
77
import {
88
CheckedStateProvider,
@@ -15,7 +15,7 @@ const pageSizes = [10, 15, 20, 25, 30] as const satisfies number[]
1515
const initialPageSize = 15 as const
1616

1717
const SearchTableInner = ({ filtered }: { filtered: TimeEntry[] }) => {
18-
const [pageRange, setPageRange] = useState<PageRange>({ start: 0, end: 15 })
18+
const [pageRange, setPageRange] = useState({ start: 0, end: 15 })
1919
const { resetChecked } = useCheckedState()
2020

2121
const pageEntries = useMemo(

src/app/routes/search/search-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const searchText = createAtom({
66
defaultValue: "",
77
})
88

9-
export interface Filter {
9+
interface Filter {
1010
id: string
1111
name: string
1212
value: string

src/components/ui/pagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const getPageRange = (page: number, size: number) => {
101101
return { start, end }
102102
}
103103

104-
export interface PageRange {
104+
interface PageRange {
105105
start: number
106106
end: number
107107
}

src/features/csv-import/csv-import.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const CsvImport = ({ csv, onImport, onClose }: CsvImportProps) => {
4646
useObjectState<CategoryMapping>({})
4747

4848
const { headers, rows } = useMemo(() => processCsv(csv), [csv])
49-
const [columnLookup, updateColumnLookup] = useObjectState<ColumnLookup>(
49+
const [columnLookup, updateColumnLookup] = useObjectState(
5050
getInitialColumnLookup(headers)
5151
)
5252

0 commit comments

Comments
 (0)