CSV Import translations and dark mode fixes (#11184)

Fixes #11182 and adds missing translations
This commit is contained in:
Félix Malfait
2025-03-27 08:53:00 +01:00
committed by GitHub
parent fad02fa26b
commit a545b3adf3
83 changed files with 5105 additions and 89 deletions

View File

@ -1,3 +1,4 @@
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
// @ts-expect-error // Todo: remove usage of react-data-grid
import DataGrid, { DataGridProps } from 'react-data-grid';
@ -125,6 +126,8 @@ export const SpreadsheetImportTable = <Data,>({
selectedRows,
}: SpreadsheetImportTableProps<Data>) => {
const { rtl } = useSpreadsheetImportInternal();
const theme = useTheme();
const themeClassName = theme.name === 'dark' ? 'rdg-dark' : 'rdg-light';
if (!rows?.length || !columns?.length) return null;
@ -133,7 +136,7 @@ export const SpreadsheetImportTable = <Data,>({
direction={rtl ? 'rtl' : 'ltr'}
rowHeight={52}
{...{
className,
className: `${className || ''} ${themeClassName}`,
columns,
components,
headerRowHeight,