About page, App fix, Mobile nav started

This commit is contained in:
TaylorS15
2023-02-11 19:18:01 -05:00
parent 4c6951977e
commit c95b436cf1
7 changed files with 138 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react';
import { Routes, Route } from 'react-router-dom';
import Navigation from './components/Navigation/Navigation';
import DocsGPT from './components/DocsGPT';
import DocsGPT from './components/DocsGPT/DocsGPT';
import APIKeyModal from './components/APIKeyModal';
import About from './components/About';
@@ -17,6 +17,7 @@ export default function App() {
setIsMobile(false);
} else {
setIsMobile(true);
setIsMenuOpen(false);
}
};
@@ -48,8 +49,14 @@ export default function App() {
setIsApiModalOpen={setIsApiModalOpen}
/>
<Routes>
<Route path="/" element={<DocsGPT isMenuOpen={isMenuOpen} />} />
<Route path="/about" element={<About isMenuOpen={isMenuOpen} />} />
<Route
path="/"
element={<DocsGPT isMenuOpen={isMenuOpen} isMobile={isMobile} />}
/>
<Route
path="/about"
element={<About isMenuOpen={isMenuOpen} isMobile={isMobile} />}
/>
</Routes>
</div>
);