File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 1
1
import Navbar from '@/components/Navbar' ;
2
2
import Footer from '@/components/Footer' ;
3
- import axios from 'axios' ;
3
+ // import axios from 'axios';
4
+ import Events from '@/components/Event' ;
4
5
5
6
export default function EventsPage ( ) {
6
- const pingBackend = async ( ) => {
7
- axios
8
- . get (
9
- `http://${ process . env . NEXT_PUBLIC_BACKEND_HOST } :${ process . env . NEXT_PUBLIC_BACKEND_PORT } /ping`
10
- )
11
- . then ( ( resp ) => console . log ( resp . data ) )
12
- . catch ( ( error ) => console . log ( error . message ) ) ;
13
- } ;
14
-
15
7
return (
16
8
< section className = "flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden" >
17
9
< Navbar />
18
- < button onClick = { ( ) => pingBackend ( ) } > Ping backend </ button >
10
+ < Events / >
19
11
< Footer />
20
12
</ section >
21
13
) ;
22
- }
14
+ }
You can’t perform that action at this time.
0 commit comments