-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
271 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// 'use client'; | ||
|
||
// import useHadith from '@stores/hadithStore'; | ||
// import React, { useEffect } from 'react'; | ||
|
||
// type Props = { | ||
// hadithId: string; | ||
// }; | ||
|
||
// const HadithHandleClient = ({ hadithId }: Props) => { | ||
// const setHadithActive = useHadith((state) => state.setHadithActive); | ||
|
||
// useEffect(() => { | ||
// setHadithActive(hadithId); | ||
// // eslint-disable-next-line react-hooks/exhaustive-deps | ||
// }, []); | ||
// return <></>; | ||
// }; | ||
|
||
// export default HadithHandleClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// import TopBar from '@components/TopBar/TopBar'; | ||
// import React from 'react'; | ||
|
||
// const HadithDetailLayout = ({ children }: { children: React.ReactNode }) => { | ||
// return ( | ||
// <> | ||
// <TopBar /> | ||
// {children} | ||
// </> | ||
// ); | ||
// }; | ||
|
||
// export default HadithDetailLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// import HadithBanner from '@components/Banner/HadithBanner'; | ||
// import HadithVerse from '@components/Hadith/HadithVerse'; | ||
// import Wrapper from '@components/Wrapper'; | ||
// import { getHadithBooks, getHadithDetail } from '@utils/api/hadith'; | ||
// import React from 'react'; | ||
// import HadithHandleClient from './handleClient'; | ||
// import HadithReader from '@components/Hadith/HadithReader/HadithReader'; | ||
|
||
// type Props = {}; | ||
|
||
// const IS_PRODUCTION = process.env.NODE_ENV === 'production'; | ||
|
||
// export const generateStaticParams = async () => { | ||
// const data = await getHadithBooks(); | ||
// return data.map((item) => ({ | ||
// hadithId: item.id, | ||
// })); | ||
// }; | ||
|
||
// export const generateMetadata = async ({ params }) => { | ||
// const data = await getHadithDetail({ id: params.hadithId }); | ||
// return { | ||
// title: `${data.name}`, | ||
// description: `Baca hadits ${data.name} dengan jumlah ${data.available} hadits.`, | ||
// robots: IS_PRODUCTION ? 'index, follow' : 'noindex, nofollow', | ||
// openGraph: { | ||
// title: `${data.name}`, | ||
// description: `Baca hadits ${data.name} dengan jumlah ${data.available} hadits.`, | ||
// }, | ||
// twitter: { | ||
// title: `${data.name}`, | ||
// description: `Baca hadits ${data.name} dengan jumlah ${data.available} hadits.`, | ||
// }, | ||
// }; | ||
// }; | ||
|
||
// const HadithDetailPage = async ({ | ||
// params, | ||
// }: { | ||
// params: { | ||
// hadithId: string; | ||
// }; | ||
// }) => { | ||
// const data = await getHadithDetail({ id: params.hadithId, range: '1-30' }); | ||
// return ( | ||
// <Wrapper className="px-5 my-14 2xl:px-0 pb-20"> | ||
// <HadithHandleClient hadithId={data.id} /> | ||
// <HadithBanner name={data.name} available={data.available} /> | ||
// <HadithReader | ||
// id={data.id} | ||
// available={data.available} | ||
// hadiths={data.hadiths} | ||
// /> | ||
// </Wrapper> | ||
// ); | ||
// }; | ||
|
||
// export default HadithDetailPage; |
Oops, something went wrong.
f947e18
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
pustaka-islam – ./
pustaka-islam-axcamz.vercel.app
pustakaislam.vercel.app
pustaka-islam-git-master-axcamz.vercel.app