Skip to content

Commit

Permalink
fix: use partial context as component interface
Browse files Browse the repository at this point in the history
  • Loading branch information
abelflopes committed Jul 18, 2024
1 parent 3471ba8 commit c245494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/table/src/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { TFoot } from "../TFoot";
import { Tr } from "../Tr";
import { TableContext, type TableContextProps } from "../context";

type TableProps = React.HTMLAttributes<HTMLDivElement> & TableContextProps;
type TableProps = React.HTMLAttributes<HTMLDivElement> & Partial<TableContextProps>;

/**
* Table is an element that visualizes a data set in rows and columns. It’s often used to embed structured data in a way that’s easy to scan.
Expand Down

0 comments on commit c245494

Please sign in to comment.