TODOs updated, removed App.css, About page

This commit is contained in:
TaylorS15
2023-02-11 13:27:02 -05:00
parent 1d3e5b85fc
commit 4c6951977e
6 changed files with 77 additions and 10 deletions

View File

@@ -3,13 +3,13 @@ import { Routes, Route } from 'react-router-dom';
import Navigation from './components/Navigation/Navigation';
import DocsGPT from './components/DocsGPT';
import APIKeyModal from './components/APIKeyModal';
import './App.css';
import About from './components/About';
export default function App() {
//Currently using primitive state management. Will most likely be replaced with Redux.
const [isMobile, setIsMobile] = useState(true);
const [isMenuOpen, setIsMenuOpen] = useState(true);
const [isApiModalOpen, setIsApiModalOpen] = useState(true);
const [isApiModalOpen, setIsApiModalOpen] = useState(false);
const [apiKey, setApiKey] = useState('');
const handleResize = () => {
@@ -49,6 +49,7 @@ export default function App() {
/>
<Routes>
<Route path="/" element={<DocsGPT isMenuOpen={isMenuOpen} />} />
<Route path="/about" element={<About isMenuOpen={isMenuOpen} />} />
</Routes>
</div>
);