1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-16 08:29:41 +07:00
verdaccio-ui/src/design-tokens/ThemeProvider.tsx

14 lines
426 B
TypeScript
Raw Normal View History

import React from 'react';
import { ThemeProvider as MuiThemeProvider } from '@material-ui/core/styles';
import { ThemeProvider as EmotionThemeProvider } from 'emotion-theming';
import theme from './theme';
const ThemeProvider: React.FC = ({ children }) => (
<EmotionThemeProvider theme={theme}>
<MuiThemeProvider theme={theme}>{children}</MuiThemeProvider>
</EmotionThemeProvider>
);
export default ThemeProvider;