Remove Container and useless favicon dependency
https://nextjs.org/docs/messages/app-container-deprecated https://nextjs.org/docs/api-reference/next/head
This commit is contained in:
parent
2dd9b5891b
commit
77e39b691c
|
|
@ -22,7 +22,6 @@
|
|||
"react": "^18.1.0",
|
||||
"react-bootstrap": "^2.4.0",
|
||||
"react-dom": "^18.1.0",
|
||||
"react-favicon": "^1.0.0",
|
||||
"react-notify-toast": "^0.5.1",
|
||||
"react-pose": "^4.0.10",
|
||||
"react-redux": "^8.0.2",
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import App, {Container} from 'next/app';
|
||||
import App from 'next/app';
|
||||
import React from 'react';
|
||||
import {Provider} from 'react-redux';
|
||||
import Notifications from 'react-notify-toast';
|
||||
import Favicon from 'react-favicon';
|
||||
import Head from 'next/head';
|
||||
|
||||
import withReduxStore from '../js/redux/reduxStoreBinder';
|
||||
import {verifyCredentials} from '../js/api.js';
|
||||
|
|
@ -23,13 +23,17 @@ class TurniereApp extends App {
|
|||
|
||||
render() {
|
||||
const {Component, pageProps, reduxStore} = this.props;
|
||||
return (<Container>
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<link rel="shortcut icon" href="/static/icons/favicon.ico" />
|
||||
</Head>
|
||||
<Notifications />
|
||||
<Favicon url="/static/icons/favicon.ico"/>
|
||||
<Provider store={reduxStore}>
|
||||
<Component {...pageProps} />
|
||||
</Provider>
|
||||
</Container>);
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5908,13 +5908,6 @@ react-fast-compare@^3.0.1:
|
|||
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
|
||||
integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
|
||||
|
||||
react-favicon@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/react-favicon/-/react-favicon-1.0.0.tgz#5ea69efe74a82fe25a4f89802fb2365520657c1f"
|
||||
integrity sha512-BjiZWXTLRTuwdsp2PhRZMVzPADM+ZPco/3EBRZGTQBLLsrv9D0rzhfQ4BPmVLaZNHPwNURSg2SrOmHyE18eu9g==
|
||||
dependencies:
|
||||
prop-types "^15.8.1"
|
||||
|
||||
react-is@^16.13.1:
|
||||
version "16.13.1"
|
||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
|
||||
|
|
|
|||
Loading…
Reference in New Issue