File tree Expand file tree Collapse file tree 4 files changed +509
-7
lines changed Expand file tree Collapse file tree 4 files changed +509
-7
lines changed Original file line number Diff line number Diff line change 1
- import { useNavigate } from "react-router-dom" ;
1
+ import { Link } from "react-router-dom" ;
2
2
3
3
export default function About ( ) {
4
- const navigate = useNavigate ( ) ;
5
-
6
4
return (
7
- < div className = "flex items-center h-dvh pt-16 sm:pt-0" >
5
+ < div className = "flex items-center pt-16 sm:mt-26 sm:pt-0" >
8
6
< div className = "relative max-w-2xl m-auto p-8 bg-[#F4F4F2] rounded-lg shadow-md" >
9
- < button
7
+ < Link
10
8
className = "absolute top-4 left-4 flex text-[#4a90e2] hover:text-[#3a7bc8] font-semibold cursor-pointer"
11
- onClick = { ( ) => navigate ( - 1 ) }
9
+ to = "/"
12
10
aria-label = "Go back"
13
11
>
14
12
< svg
@@ -25,7 +23,7 @@ export default function About() {
25
23
/>
26
24
</ svg >
27
25
Back
28
- </ button >
26
+ </ Link >
29
27
< p className = "my-6" >
30
28
< strong > Tenant First Aid</ strong > is an AI-powered chatbot designed to
31
29
help tenants navigate rental issues, answer questions, and provides
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Chat from "./Chat";
3
3
import About from "./About" ;
4
4
import SessionContextProvider from "./contexts/SessionContext" ;
5
5
import Navbar from "./pages/Chat/components/Navbar" ;
6
+ import Disclaimer from "./Disclaimer" ;
6
7
7
8
export default function App ( ) {
8
9
return (
@@ -12,6 +13,7 @@ export default function App() {
12
13
< Routes >
13
14
< Route path = "/" element = { < Chat /> } />
14
15
< Route path = "/about" element = { < About /> } />
16
+ < Route path = "/disclaimer" element = { < Disclaimer /> } />
15
17
</ Routes >
16
18
</ Router >
17
19
</ SessionContextProvider >
You can’t perform that action at this time.
0 commit comments