Skip to content

Commit

Permalink
use JSX.Element
Browse files Browse the repository at this point in the history
  • Loading branch information
righ committed May 12, 2024
1 parent 8646dee commit 3af8c9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/GridSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ import { embedStyle } from '../styles/embedder';
import { useSheetContext } from './SheetProvider';
import { FormulaBar } from './FormulaBar';

export const GridSheet: React.FC<Props> = ({
export function GridSheet({
initialCells: initialData,
sheetName = '',
tableRef,
options = {},
className,
style,
additionalFunctions = {},
}) => {
}: Props) {
const { sheetResize, showFormulaBar = true } = options;
const [prevSheetName, setPrevSheetName] = React.useState(sheetName);
const sheetRef = React.useRef<HTMLDivElement | null>(null);
Expand Down
2 changes: 1 addition & 1 deletion src/components/SheetProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function useSheetDispatch() {
return dispatch;
}

export function SheetProvider({ children }: { children: React.ReactNode }) {
export function SheetProvider({ children }: { children: JSX.Element }) {
const [mounted, setMounted] = React.useState(false);
const [version, setVersion] = React.useState(0);
const head = React.useRef(1);
Expand Down

0 comments on commit 3af8c9a

Please sign in to comment.