diff --git a/package-lock.json b/package-lock.json index c4893b7..0af3c07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,6 +32,7 @@ "react-big-calendar": "^1.5.0", "react-datepicker": "^4.8.0", "react-dom": "^18.2.0", + "react-loading": "^2.0.3", "react-router-dom": "^6.4.2", "react-scripts": "^5.0.1", "sass": "^1.55.0", @@ -14941,6 +14942,15 @@ "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" }, + "node_modules/react-loading": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/react-loading/-/react-loading-2.0.3.tgz", + "integrity": "sha512-Vdqy79zq+bpeWJqC+xjltUjuGApyoItPgL0vgVfcJHhqwU7bAMKzysfGW/ADu6i0z0JiOCRJjo+IkFNkRNbA3A==", + "peerDependencies": { + "prop-types": "^15.6.0", + "react": ">=0.14.0" + } + }, "node_modules/react-onclickoutside": { "version": "6.12.2", "resolved": "https://registry.npmjs.org/react-onclickoutside/-/react-onclickoutside-6.12.2.tgz", @@ -28394,6 +28404,12 @@ "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" }, + "react-loading": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/react-loading/-/react-loading-2.0.3.tgz", + "integrity": "sha512-Vdqy79zq+bpeWJqC+xjltUjuGApyoItPgL0vgVfcJHhqwU7bAMKzysfGW/ADu6i0z0JiOCRJjo+IkFNkRNbA3A==", + "requires": {} + }, "react-onclickoutside": { "version": "6.12.2", "resolved": "https://registry.npmjs.org/react-onclickoutside/-/react-onclickoutside-6.12.2.tgz", diff --git a/package.json b/package.json index 1babbb6..0965eb6 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "react-big-calendar": "^1.5.0", "react-datepicker": "^4.8.0", "react-dom": "^18.2.0", + "react-loading": "^2.0.3", "react-router-dom": "^6.4.2", "react-scripts": "^5.0.1", "sass": "^1.55.0", diff --git a/src/App.js b/src/App.js index 8d212c1..1b97d3b 100644 --- a/src/App.js +++ b/src/App.js @@ -11,28 +11,31 @@ import Admin_create from './pages/Admin_create'; import Calendrier from './pages/Calendrier'; import Repertoire from './pages/Repertoire'; import Parametres from './pages/Parametres'; +import Chargement from './pages/Chargement'; +import { Component } from 'fullcalendar'; const App = () => { - return ( - - - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - - - ); + return ( + + + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + ); } diff --git a/src/pages/Chargement.js b/src/pages/Chargement.js new file mode 100644 index 0000000..04ef0b3 --- /dev/null +++ b/src/pages/Chargement.js @@ -0,0 +1,13 @@ +import React, {Component} from 'react'; +import ReactLoading from 'react-loading'; + +const Chargement = () => { + + return ( +
+ +
+ ); +} + +export default Chargement; \ No newline at end of file diff --git a/src/pages/Compte.js b/src/pages/Compte.js index d69edc4..71f3f7a 100644 --- a/src/pages/Compte.js +++ b/src/pages/Compte.js @@ -18,6 +18,14 @@ function Compte() { setFile(URL.createObjectURL(e.target.files[0])); } + const [modification, setModification] = useState(false); + + const modificationHandler = () => { + setModification((modification) => !modification) + console.log("modificationHandler") + console.log(modification) + } + return ( @@ -61,7 +69,7 @@ function Compte() {

Mateo Centeno

- +
diff --git a/src/styles/components/_chargement.scss b/src/styles/components/_chargement.scss new file mode 100644 index 0000000..102e780 --- /dev/null +++ b/src/styles/components/_chargement.scss @@ -0,0 +1,6 @@ +.chargement { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; +} \ No newline at end of file diff --git a/src/styles/index.scss b/src/styles/index.scss index 625c18a..ac6a812 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -6,4 +6,5 @@ @import "./components/analyse"; @import "./components/calendrier"; @import "./components/parametre"; -@import "./components/repertoire" \ No newline at end of file +@import "./components/repertoire"; +@import "./components/chargement" \ No newline at end of file