Skip to content

Commit

Permalink
import hygraph article schema
Browse files Browse the repository at this point in the history
  • Loading branch information
julianaijal committed Nov 11, 2024
1 parent 8bfccae commit e54678b
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions app/articles/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import { NavBar, Footer } from "./../../_components";
import styles from '../../styles/Article.module.scss';
const Page = ({ params }: { params: { id: string } }) => {
return (
<>
<NavBar/>
<h1 className={styles.ArticleTitle}>{params.id}</h1>
<Footer />
</>
);
import apiFunctions from "../../utils/api";

const Page = async ({ params }: { params: { id: string } }) => {
const { data } = await apiFunctions.fetchArticles();
console.log(data)
return (
<>
<NavBar />
<h1 className={styles.ArticleTitle}>{params.id}</h1>
<Footer />
</>
);
};

export default Page;
export default Page;

0 comments on commit e54678b

Please sign in to comment.