diff --git a/package-lock.json b/package-lock.json index 6baba4a..5b6b666 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,13 +14,10 @@ "@types/node": "^16.18.108", "@types/react": "^18.3.5", "@types/react-dom": "^18.3.0", - "globals": "^15.9.0", - "mailgun": "^0.5.0", - "react": "^18.3.1", - "react-dom": "^18.3.1", "@uiw/react-codemirror": "^4.23.5", "codemirror": "^6.0.1", "globals": "^15.9.0", + "mailgun": "^0.5.0", "react": "^18.3.1", "react-dom": "^18.3.1", "react-quill-new": "^3.3.2", @@ -4593,15 +4590,6 @@ "integrity": "sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg==", "license": "MIT" }, - "node_modules/@types/quill": { - "version": "1.3.10", - "resolved": "https://registry.npmjs.org/@types/quill/-/quill-1.3.10.tgz", - "integrity": "sha512-IhW3fPW+bkt9MLNlycw8u8fWb7oO7W5URC9MfZYHBlA24rex9rs23D5DETChu1zvgVdc5ka64ICjJOgQMr6Shw==", - "license": "MIT", - "dependencies": { - "parchment": "^1.1.2" - } - }, "node_modules/@types/range-parser": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", @@ -6498,15 +6486,6 @@ "wrap-ansi": "^7.0.0" } }, - "node_modules/clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, "node_modules/co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", @@ -8906,12 +8885,6 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "license": "MIT" }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "license": "MIT" - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", diff --git a/src/App.jsx b/src/App.jsx index 4ede1b5..f07ec01 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,6 +1,5 @@ - -import { useState } from 'react'; import React from 'react'; +import { useState, useEffect } from 'react'; import { BrowserRouter as Router, Routes, @@ -23,6 +22,7 @@ import './App.css'; export default function App() { const basename = process.env.NODE_ENV === 'production' ? "/~alpt22/editor" : ""; const [token, setToken] = useState(sessionStorage.getItem("token")); + return ( @@ -34,11 +34,12 @@ export default function App() { } /> - } /> + } /> + + } /> - } /> + } /> - } />