Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd committed Jan 21, 2025
1 parent bc9cdc8 commit 6e7b667
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, {
type ComponentPropsWithoutRef,
type ReactNode,
type CSSProperties,
Children,
} from 'react';

import { styles } from '../../style';
Expand Down Expand Up @@ -44,7 +45,7 @@ export function CellValue<
const { fullSheetName } = useSheetName(binding);
const sheetValue = useSheetValue(binding);

return children && React.Children.toArray(children).length ? (
return children && Children.toArray(children).length ? (

Check failure on line 48 in packages/desktop-client/src/components/spreadsheet/CellValue.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Argument of type '({ type, name, value, }: { type?: FormatType; name: string; value: Spreadsheets[SheetName][FieldName]; }) => ReactNode' is not assignable to parameter of type 'ReactNode | ReactNode[]'.
<>{children({ type, name: fullSheetName, value: sheetValue })}</>
) : (
<CellValueText
Expand Down

0 comments on commit 6e7b667

Please sign in to comment.