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:
Thor77 2022-06-10 20:54:29 +02:00
parent 2dd9b5891b
commit 77e39b691c
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
3 changed files with 13 additions and 17 deletions

View File

@ -22,7 +22,6 @@
"react": "^18.1.0", "react": "^18.1.0",
"react-bootstrap": "^2.4.0", "react-bootstrap": "^2.4.0",
"react-dom": "^18.1.0", "react-dom": "^18.1.0",
"react-favicon": "^1.0.0",
"react-notify-toast": "^0.5.1", "react-notify-toast": "^0.5.1",
"react-pose": "^4.0.10", "react-pose": "^4.0.10",
"react-redux": "^8.0.2", "react-redux": "^8.0.2",

View File

@ -1,8 +1,8 @@
import App, {Container} from 'next/app'; import App from 'next/app';
import React from 'react'; import React from 'react';
import {Provider} from 'react-redux'; import {Provider} from 'react-redux';
import Notifications from 'react-notify-toast'; import Notifications from 'react-notify-toast';
import Favicon from 'react-favicon'; import Head from 'next/head';
import withReduxStore from '../js/redux/reduxStoreBinder'; import withReduxStore from '../js/redux/reduxStoreBinder';
import {verifyCredentials} from '../js/api.js'; import {verifyCredentials} from '../js/api.js';
@ -23,13 +23,17 @@ class TurniereApp extends App {
render() { render() {
const {Component, pageProps, reduxStore} = this.props; const {Component, pageProps, reduxStore} = this.props;
return (<Container> return (
<Notifications /> <>
<Favicon url="/static/icons/favicon.ico"/> <Head>
<Provider store={reduxStore}> <link rel="shortcut icon" href="/static/icons/favicon.ico" />
<Component {...pageProps} /> </Head>
</Provider> <Notifications />
</Container>); <Provider store={reduxStore}>
<Component {...pageProps} />
</Provider>
</>
);
} }
} }

View File

@ -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" resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA== 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: react-is@^16.13.1:
version "16.13.1" version "16.13.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"