ChenyuRabbitLove commited on
Commit
580f23b
·
1 Parent(s): 1a3e22e

chore: remove unused ocde

Browse files
Files changed (1) hide show
  1. app/page.tsx +0 -10
app/page.tsx CHANGED
@@ -2,20 +2,10 @@
2
 
3
  import Link from "next/link"
4
  import { useTheme } from './components/ThemeProvider'
5
- import { useEffect, useState } from 'react'
6
  import ChatBot from './components/ChatBot'
7
 
8
  export default function LandingPage() {
9
  const { theme, toggleTheme } = useTheme()
10
- const [message, setMessage] = useState('')
11
-
12
- useEffect(() => {
13
- // Call FastAPI endpoint
14
- fetch('/api/hello')
15
- .then(res => res.json())
16
- .then(data => {setMessage(data.message); console.log('Fetched message:', data.message);})
17
- .catch(err => console.error('Error fetching:', err))
18
- }, [])
19
 
20
  return (
21
  <div className="min-h-screen bg-background-primary">
 
2
 
3
  import Link from "next/link"
4
  import { useTheme } from './components/ThemeProvider'
 
5
  import ChatBot from './components/ChatBot'
6
 
7
  export default function LandingPage() {
8
  const { theme, toggleTheme } = useTheme()
 
 
 
 
 
 
 
 
 
9
 
10
  return (
11
  <div className="min-h-screen bg-background-primary">