Commit 508da460 by Arjun Jhukal

updated the revalidated condition for the user dashboard

parent ff37335b
...@@ -69,7 +69,7 @@ export default async function Home() { ...@@ -69,7 +69,7 @@ export default async function Home() {
{/* Games */} {/* Games */}
{gamesError ? ( {gamesError ? (
<p className="text-red-500">{gamesError}</p> <p></p>
) : games?.data?.data?.length ? ( ) : games?.data?.data?.length ? (
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4 2xl:grid-cols-5 mb-8"> <div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4 2xl:grid-cols-5 mb-8">
{games.data.data.map((game) => ( {games.data.data.map((game) => (
...@@ -103,7 +103,7 @@ export default async function Home() { ...@@ -103,7 +103,7 @@ export default async function Home() {
<section className="trending__games"> <section className="trending__games">
<h2 className="text-[14px] mb-4">Top 10 Trending Games</h2> <h2 className="text-[14px] mb-4">Top 10 Trending Games</h2>
{subGamesError ? ( {subGamesError ? (
"" <p></p>
) : ( ) : (
<div className="grid gap-4 grid-cols-2 md:grid-cols-3 lg:grid-cols-5 2xl:grid-cols-6 mb-8"> <div className="grid gap-4 grid-cols-2 md:grid-cols-3 lg:grid-cols-5 2xl:grid-cols-6 mb-8">
{subGames?.data?.map((game: any) => ( {subGames?.data?.map((game: any) => (
...@@ -126,7 +126,7 @@ export default async function Home() { ...@@ -126,7 +126,7 @@ export default async function Home() {
{/* Sub Banners */} {/* Sub Banners */}
{subBannersError ? ( {subBannersError ? (
"" <p></p>
) : subBanners?.data?.length ? ( ) : subBanners?.data?.length ? (
<div className="dashboard-card-wrapper grid grid-cols-2 gap-5 justify-center"> <div className="dashboard-card-wrapper grid grid-cols-2 gap-5 justify-center">
{subBanners.data.map((subBanner, index) => ( {subBanners.data.map((subBanner, index) => (
...@@ -195,7 +195,7 @@ export default async function Home() { ...@@ -195,7 +195,7 @@ export default async function Home() {
{/* USP Slider */} {/* USP Slider */}
{uspError ? ( {uspError ? (
"" <p></p>
) : ( ) : (
<UspSlider uspData={usps?.data || []} /> <UspSlider uspData={usps?.data || []} />
)} )}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment