fix: remove mui theme provider (#2055)

This commit is contained in:
Himself65
2023-04-20 14:31:54 -05:00
committed by GitHub
parent d24c43e750
commit 0a0f825a15
9 changed files with 66 additions and 138 deletions
@@ -1,4 +1,4 @@
import { useTheme } from '@mui/material';
import { useTheme } from 'next-themes';
import type { FC } from 'react';
import { InternalLottie } from '../internal-lottie';
@@ -16,8 +16,8 @@ export const AffineLoading: FC<AffineLoadingProps> = ({
autoplay = false,
autoReverse = false,
}) => {
const theme = useTheme();
const isDark = theme.palette.mode === 'dark';
const { theme } = useTheme();
const isDark = theme === 'dark';
return (
<InternalLottie
key={isDark ? 'dark' : 'light'}