Skip to content

Commit

Permalink
chore: sync
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed Mar 7, 2025
1 parent 160bf50 commit 69f85b7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ env:
FORCE_COLOR: 3

jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.4
- uses: ./.github/setup

- name: Check formatting
run: pnpm lint:fix

lint:
runs-on: ubuntu-latest
name: Lint
Expand Down
2 changes: 1 addition & 1 deletion src/components/data-table/data-table-sort-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export function DataTableSortList<TData>({
</PopoverTrigger>
<PopoverContent
id={fieldListboxId}
className="w-[var(--radix-popover-trigger-width)] p-0"
className="w-[var(--radix-popover-trigger-width)] origin-[var(--radix-popover-content-transform-origin)] p-0"
onCloseAutoFocus={() =>
document.getElementById(fieldTriggerId)?.focus()
}
Expand Down
12 changes: 7 additions & 5 deletions src/hooks/use-data-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,13 @@ export function useDataTable<TData>({

const [filterValues, setFilterValues] = useQueryStates(filterParsers);

const debouncedSetFilterValues = useDebouncedCallback((values: typeof filterValues) => {
void setPage(1);
void setFilterValues(values);
}, debounceMs);
const debouncedSetFilterValues = useDebouncedCallback(
(values: typeof filterValues) => {
void setPage(1);
void setFilterValues(values);
},
debounceMs,
);

// Paginate
const pagination: PaginationState = {
Expand Down Expand Up @@ -314,7 +317,6 @@ export function useDataTable<TData>({
enableAdvancedFilter,
filterableColumns,
searchableColumns,
setPage,
],
);

Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
}
},
"include": [
".eslintrc.cjs",
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
Expand Down

0 comments on commit 69f85b7

Please sign in to comment.