set count is 0 + stroke heart

This commit is contained in:
hamid zarghami
2025-12-22 15:42:31 +03:30
parent d363e64bcc
commit 15212e6429
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -150,7 +150,8 @@ function FoodPage({ }: Props) {
<Heart <Heart
variant={isFavorite ? 'Bold' : 'Outline'} variant={isFavorite ? 'Bold' : 'Outline'}
size={24} size={24}
className={isFavorite ? 'fill-primary dark:fill-foreground' : 'stroke-primary dark:stroke-foreground'} color='currentColor'
className={isFavorite ? 'fill-primary dark:fill-foreground' : ''}
/> />
</button> </button>
</div> </div>
+1 -1
View File
@@ -72,7 +72,7 @@ function TopBar({ profileDropState, toggleProfileDropState, toggleMenuState }: P
className='relative'> className='relative'>
<NotificationBellIcon className='size-4.5 text-icon-active dark:text-foreground' /> <NotificationBellIcon className='size-4.5 text-icon-active dark:text-foreground' />
<span className='absolute -right-1 -top-1 flex items-center justify-center bg-primary size-3 rounded-full text-[8px] text-container'> <span className='absolute -right-1 -top-1 flex items-center justify-center bg-primary size-3 rounded-full text-[8px] text-container'>
<div className='mt-0.25 place-self-center'>{notificationsCount?.data?.count}</div> <div className='mt-0.25 place-self-center'>{notificationsCount?.data?.count || '0'}</div>
</span> </span>
</Link> </Link>
{isLoggedIn ? ( {isLoggedIn ? (