CSV Import translations and dark mode fixes (#11184)
Fixes #11182 and adds missing translations
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user