Skip to content

Commit

Permalink
move flex render imports
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Oct 27, 2024
1 parent 0db47d0 commit 093512c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<script lang="ts" module>
import type { CellContext, ColumnDefTemplate, HeaderContext } from "@tanstack/table-core";
import {
RenderComponentConfig,
RenderSnippetConfig,
} from "$lib/registry/default/ui/data-table/render-helpers.js";
type TData = unknown;
type TValue = unknown;
type TContext = unknown;
Expand All @@ -13,6 +10,10 @@
lang="ts"
generics="TData, TValue, TContext extends HeaderContext<TData, TValue> | CellContext<TData, TValue>"
>
import {
RenderComponentConfig,
RenderSnippetConfig,
} from "$lib/registry/default/ui/data-table/render-helpers.js";
type Props = {
/** The cell or header field of the current cell's column definition. */
content?: TContext extends HeaderContext<TData, TValue>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<script lang="ts" module>
import type { CellContext, ColumnDefTemplate, HeaderContext } from "@tanstack/table-core";
import {
RenderComponentConfig,
RenderSnippetConfig,
} from "$lib/registry/new-york/ui/data-table/render-helpers.js";
type TData = unknown;
type TValue = unknown;
type TContext = unknown;
Expand All @@ -13,6 +9,11 @@
lang="ts"
generics="TData, TValue, TContext extends HeaderContext<TData, TValue> | CellContext<TData, TValue>"
>
import {
RenderComponentConfig,
RenderSnippetConfig,
} from "$lib/registry/new-york/ui/data-table/render-helpers.js";
type Props = {
/** The cell or header field of the current cell's column definition. */
content?: TContext extends HeaderContext<TData, TValue>
Expand Down

0 comments on commit 093512c

Please sign in to comment.