Skip to content

Commit

Permalink
fix: function syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
moonbamijam committed Feb 12, 2024
1 parent bbde07a commit 7490f51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ import About from '@components/about/About';
import { TopicType } from '@customs/topic';
import { AboutType } from '@customs/about';

const handleTopics = async () => {
async function handleTopics() {
const data = await useFetch("/api/topics");
return data;
}
const handleAboutMe = async () => {
};
async function handleAboutMe() {
const data = await useFetch("/api/about");
return data;
}
};

const Home = async () => {
const { topics } = await handleTopics()
Expand Down

0 comments on commit 7490f51

Please sign in to comment.