Maj dashboard, boutique + ajout de produit

This commit is contained in:
2026-04-15 20:35:23 +02:00
parent fb5528337b
commit daac641e53
234 changed files with 189 additions and 122003 deletions

View File

@@ -218,7 +218,7 @@ const DashboardPage = () => {
<p className="px-3 text-[10px] font-semibold text-gray-400 uppercase tracking-wider">Espace Business</p>
</div>
{user.role === 'ENTREPRENEUR' ? (
{(user.role === 'ENTREPRENEUR' || user.role === 'ADMIN' || (business && business.id !== 'new')) ? (
<>
<button onClick={() => setCurrentView('profile')} className={`${currentView === 'profile' ? 'bg-brand-50 text-brand-700' : 'text-gray-600 hover:bg-gray-50 hover:text-gray-900'} group flex items-center px-2 py-2 text-sm font-medium rounded-md w-full`}>
<Edit3 className={`${currentView === 'profile' ? 'text-brand-500' : 'text-gray-400 group-hover:text-gray-500'} mr-3 flex-shrink-0 h-5 w-5`} />
@@ -297,7 +297,7 @@ const DashboardPage = () => {
{currentView === 'messages' && <DashboardMessages onMessagesRead={fetchUnreadCount} initialConversationId={chatId} />}
{currentView === 'personal-profile' && <DashboardProfileClient />}
{currentView === 'profile' && <DashboardProfile business={displayBusiness} setBusiness={setBusiness} />}
{currentView === 'offers' && <DashboardOffers />}
{currentView === 'offers' && <DashboardOffers businessId={displayBusiness.id} />}
{currentView === 'subscription' && (
<div className="space-y-6">
<div className="bg-white shadow rounded-lg p-6 flex justify-between items-center">