feat: initialize Prisma schema and scaffold core application modules including auth, blogs, events, and business directories
Some checks failed
Build and Push App / build (push) Failing after 47s
Some checks failed
Build and Push App / build (push) Failing after 47s
This commit is contained in:
@@ -15,7 +15,8 @@ import PricingSection from '../../components/PricingSection';
|
||||
import { useUser } from '../../components/UserProvider';
|
||||
|
||||
const DashboardContent = () => {
|
||||
const { user, logout } = useUser();
|
||||
const { user, settings, logout } = useUser();
|
||||
const siteName = settings?.siteName || "Afrohub";
|
||||
const router = useRouter();
|
||||
const searchParams = useSearchParams();
|
||||
const chatId = searchParams.get('chatId') || searchParams.get('chat');
|
||||
@@ -112,11 +113,11 @@ const DashboardContent = () => {
|
||||
// Update document title with unread count
|
||||
useEffect(() => {
|
||||
if (unreadCount > 0) {
|
||||
document.title = `(${unreadCount}) Messages - Afrohub`;
|
||||
document.title = `(${unreadCount}) Messages - ${siteName}`;
|
||||
} else {
|
||||
document.title = 'Tableau de Bord - Afrohub';
|
||||
document.title = `Tableau de Bord - ${siteName}`;
|
||||
}
|
||||
}, [unreadCount]);
|
||||
}, [unreadCount, siteName]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!user && isMounted) {
|
||||
@@ -168,8 +169,10 @@ const DashboardContent = () => {
|
||||
<div className="hidden md:flex md:flex-col md:w-64 md:fixed md:inset-y-0 bg-white border-r border-gray-200">
|
||||
<div className="flex items-center h-16 flex-shrink-0 px-4 border-b border-gray-200">
|
||||
<Link href="/" className="flex items-center gap-2">
|
||||
<div className="w-8 h-8 bg-brand-600 rounded-lg flex items-center justify-center text-white font-bold font-serif">A</div>
|
||||
<span className="font-serif font-bold text-lg text-gray-900">Afrohub</span>
|
||||
<div className="w-8 h-8 bg-brand-600 rounded-lg flex items-center justify-center text-white font-bold font-serif">
|
||||
{siteName.charAt(0)}
|
||||
</div>
|
||||
<span className="font-serif font-bold text-lg text-gray-900">{siteName}</span>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="flex-1 flex flex-col overflow-y-auto pt-5 pb-4">
|
||||
|
||||
Reference in New Issue
Block a user