fix: use resolved theme value (#1039)

This commit is contained in:
Ian Jones 2025-06-02 22:01:20 -04:00 committed by GitHub
parent 8fff778833
commit 7d8e71383f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,7 @@ const PureSpreadsheetEditor = ({
status,
isCurrentVersion,
}: SheetEditorProps) => {
const { theme } = useTheme();
const { resolvedTheme } = useTheme();
const parseData = useMemo(() => {
if (!content) return Array(MIN_ROWS).fill(Array(MIN_COLS).fill(''));
@ -111,7 +111,7 @@ const PureSpreadsheetEditor = ({
return (
<DataGrid
className={theme === 'dark' ? 'rdg-dark' : 'rdg-light'}
className={resolvedTheme === 'dark' ? 'rdg-dark' : 'rdg-light'}
columns={columns}
rows={localRows}
enableVirtualization