_app.js 515 B

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