Skip to content

Commit

Permalink
refactor : animations added on bell icon & added divider
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jul 3, 2024
1 parent 2936a96 commit 545d595
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/components/headbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default async function Headbar({ user, role }: HeadbarProps) {
>
<GoPlus size={20} />
</Button>

<Notifications userId={user._id} />
<Divider orientation="vertical" className="h-8" />

<User
name={user.firstname}
Expand All @@ -48,6 +48,7 @@ export default async function Headbar({ user, role }: HeadbarProps) {
>{`@${user.username}`}</Link>
}
/>
<Divider orientation="vertical" className="h-8" />

<form action={logoutAction} className="">
<Button size="sm" type="submit" isIconOnly className="bg-transparent">
Expand Down
4 changes: 3 additions & 1 deletion app/components/notifications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const CustomBellIcon = ({
return (
<CiBellOn
size={25}
color={unseenCount > 0 ? "red" : "black"}
className={`cursor-pointer relative ${
unseenCount > 0 ? "animate-bounce text-danger-800" : ""
}`}
style={{
cursor: "pointer",
}}
Expand Down

0 comments on commit 545d595

Please sign in to comment.