_app.js 674 B

12345678910111213141516171819202122232425262728
  1. import App from 'next/app';
  2. import React from 'react';
  3. import { ThemeProvider } from 'styled-components';
  4. import { ToastProvider } from 'react-toast-notifications';
  5. import { StoreProvider } from '../store';
  6. import theme from '../helpers/theme';
  7. import '../i18n';
  8. import '../helpers/globalStyles.css';
  9. class MainApp extends App {
  10. render() {
  11. const { Component, pageProps } = this.props;
  12. return (
  13. <StoreProvider>
  14. <ToastProvider placement="bottom-center">
  15. <ThemeProvider theme={theme}>
  16. <Component {...pageProps} />
  17. </ThemeProvider>
  18. </ToastProvider>
  19. </StoreProvider>
  20. );
  21. }
  22. }
  23. export default MainApp;