Skip to content

Commit

Permalink
ts update 2
Browse files Browse the repository at this point in the history
  • Loading branch information
shindigira committed May 25, 2024
1 parent 90fccd6 commit 4388a21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import classNames from 'classnames';
import type { ForwardedRef } from 'react';
import type { ForwardedRef, HTMLProps } from 'react';
import { forwardRef, type ReactNode } from 'react';
import type { JSXElement } from '~/src/types/jsxElement';
import { type WidthPercent } from '../../types/WidthPercent';
Expand All @@ -9,7 +9,9 @@ import { usePagination } from '../Pagination/usePagination';
import './table.less';
import { buildColumnHeaders, buildRows } from './tableUtils';

const Caption = ({ children }: { children: ReactNode }): JSXElement => {
const Caption = ({
children
}: HTMLProps<HTMLTableCaptionElement>): JSXElement => {
if (!children) return null;
return <caption>{children}</caption>;
};
Expand Down

0 comments on commit 4388a21

Please sign in to comment.