Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jigsawye committed Mar 16, 2021
2 parents e0d7ca7 + 03caaf4 commit d232866
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions src/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,21 @@ import {
TableWrapper,
} from './styles';

const Head = forwardRef<HTMLTableSectionElement>(function Head(
{ children },
ref
) {
return (
<thead ref={ref}>
<Row>{children}</Row>
</thead>
);
});
const Head = forwardRef<HTMLTableSectionElement, { children: ReactNode }>(
function Head({ children }, ref) {
return (
<thead ref={ref}>
<Row>{children}</Row>
</thead>
);
}
);

const Body = forwardRef<HTMLTableSectionElement>(function Body(
{ children },
ref
) {
return <tbody ref={ref}>{children}</tbody>;
});
const Body = forwardRef<HTMLTableSectionElement, { children: ReactNode }>(
function Body({ children }, ref) {
return <tbody ref={ref}>{children}</tbody>;
}
);

export type TableProps = ComponentPropsWithoutRef<'table'> &
Omit<StyledTableProps, 'hasHeader' | 'hasFooter'> & {
Expand Down

0 comments on commit d232866

Please sign in to comment.