Skip to content

Commit f277d05

Browse files
author
Ming Xuan Yong
committed
Edited events page such that it can be visible when events is clicked
1 parent b0d426d commit f277d05

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

frontend/src/pages/events.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
import Navbar from '@/components/Navbar';
22
import Footer from '@/components/Footer';
3-
import axios from 'axios';
3+
// import axios from 'axios';
4+
import Events from '@/components/Event';
45

56
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-
157
return (
168
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
179
<Navbar />
18-
<button onClick={() => pingBackend()}>Ping backend</button>
10+
<Events/>
1911
<Footer />
2012
</section>
2113
);
22-
}
14+
}

0 commit comments

Comments
 (0)