* Added prisma to suggested extension in container * Added comments and authors on drawer with proper resolving * Fix lint * Fix console log * Fixed generated front graphql from rebase * Fixed right drawer width and shared in theme * Added date packages and tooltip * Added date utils and tests * Added comment thread components * Fixed comment chip * wip * wip 2 * - Added string typing for DateTime scalar - Refactored user in a recoil state and workspace using it - Added comment creation * Prepared EditableCell refactor * Fixed line height and tooltip * Fix lint
15 lines
431 B
TypeScript
15 lines
431 B
TypeScript
import { ThemeProvider } from '@emotion/react';
|
|
|
|
import { darkTheme, lightTheme } from '@/ui/layout/styles/themes';
|
|
import { browserPrefersDarkMode } from '@/utils/utils';
|
|
|
|
type OwnProps = {
|
|
children: JSX.Element;
|
|
};
|
|
|
|
export function AppThemeProvider({ children }: OwnProps) {
|
|
const selectedTheme = browserPrefersDarkMode() ? darkTheme : lightTheme;
|
|
|
|
return <ThemeProvider theme={selectedTheme}>{children}</ThemeProvider>;
|
|
}
|