Skip to content

Commit b79fa7e

Browse files
docs: Fix new react example
1 parent 9bda635 commit b79fa7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/react/query-router-search-params/src/components/table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
PaginationOptions,
77
PaginationState,
88
SortingState,
9-
useReactTable,
9+
useTable,
1010
} from '@tanstack/react-table'
1111
import { Filters } from '../api/types'
1212
import { DebouncedInput } from './debouncedInput'
@@ -35,7 +35,7 @@ export default function Table<T extends Record<string, string | number>>({
3535
sorting,
3636
onSortingChange,
3737
}: Props<T>) {
38-
const table = useReactTable({
38+
const table = useTable({
3939
data,
4040
columns,
4141
state: { pagination, sorting },

packages/svelte-table/src/flex-render.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{#if typeof content === 'string'}
2727
{content}
2828
{:else if content instanceof Function}
29-
{@const result = content(context as any)}
29+
{@const result = content(context as any)}
3030
{#if result instanceof RenderComponentConfig}
3131
<svelte:component this={result.component} {...result.props} />
3232
{:else}

0 commit comments

Comments
 (0)