diff --git a/pages/member.jsx b/pages/member.jsx index 1828dfee..2c60370e 100644 --- a/pages/member.jsx +++ b/pages/member.jsx @@ -11,9 +11,11 @@ import { import { motion } from "framer-motion"; import CardAnggota from "../components/CardAnggota" import { NextSeo } from "next-seo"; -const member = (props) => { - const file = fs.readFile(process.cwd() + '/data/dataMember.json', 'utf8'); - const dataAnggota = JSON.parse(file); +import dataAnggota from "../data/dataMember.json" + +export default async function member() { + // const file = await fs.readFile(process.cwd() + '/data/dataMember.json', 'utf8'); + // const dataAnggota = JSON.parse(file); // const [dataAnggota, setDataAnggota] = React.useState(false); const MotionBox = motion(Box) const year = new Date().getFullYear() @@ -111,5 +113,3 @@ const member = (props) => { ); } }; - -export default member;