feat: add multi-user admin panel and featured partners toggle on home page
This commit is contained in:
@@ -4,7 +4,7 @@ import Image from "next/image";
|
||||
import { useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { ArrowUpRight } from "lucide-react";
|
||||
import Footer from "@/components/Footer";
|
||||
|
||||
|
||||
interface ProjectCardProps {
|
||||
hero_image: string;
|
||||
@@ -97,7 +97,7 @@ export default function WorksClient({ projects: initialProjects }: { projects: a
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (e) {}
|
||||
} catch (e) { }
|
||||
return Array.isArray(current) ? current : (typeof current === 'string' && current ? [current] : []);
|
||||
})))];
|
||||
|
||||
@@ -113,7 +113,7 @@ export default function WorksClient({ projects: initialProjects }: { projects: a
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (e) {}
|
||||
} catch (e) { }
|
||||
const cats = Array.isArray(current) ? current : (typeof current === 'string' && current ? [current] : []);
|
||||
return cats.includes(activeCategory);
|
||||
});
|
||||
@@ -181,7 +181,6 @@ export default function WorksClient({ projects: initialProjects }: { projects: a
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<Footer />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user