Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

GlobalStyles.web.tsx 472B

1234567891011121314151617181920212223
  1. import React from 'react';
  2. import { GlobalStyles as MUIGlobalStyles } from 'tss-react';
  3. import { useStyles } from 'tss-react/mui';
  4. import { commonStyles } from '../constants';
  5. /**
  6. * A component generating all the global styles.
  7. *
  8. * @returns {void}
  9. */
  10. function GlobalStyles() {
  11. const { theme } = useStyles();
  12. return (
  13. <MUIGlobalStyles
  14. styles = {
  15. commonStyles(theme)
  16. } />
  17. );
  18. }
  19. export default GlobalStyles;