Skip to content

Commit

Permalink
docs: Fix new react example
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jun 29, 2024
1 parent 9bda635 commit b79fa7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
PaginationOptions,
PaginationState,
SortingState,
useReactTable,
useTable,
} from '@tanstack/react-table'
import { Filters } from '../api/types'
import { DebouncedInput } from './debouncedInput'
Expand Down Expand Up @@ -35,7 +35,7 @@ export default function Table<T extends Record<string, string | number>>({
sorting,
onSortingChange,
}: Props<T>) {
const table = useReactTable({
const table = useTable({
data,
columns,
state: { pagination, sorting },
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-table/src/flex-render.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{#if typeof content === 'string'}
{content}
{:else if content instanceof Function}
{@const result = content(context as any)}
{@const result = content(context as any)}
{#if result instanceof RenderComponentConfig}
<svelte:component this={result.component} {...result.props} />
{:else}
Expand Down

0 comments on commit b79fa7e

Please sign in to comment.