Skip to content

Commit

Permalink
Remove unnecessary shrinked check from class name conditional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
vinutv committed Oct 16, 2024
1 parent 827a682 commit 82091c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/Components/Common/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,12 @@ const ToggleShrink = ({ shrinked, toggle }: ToggleShrinkProps) => (
<button
className={`flex h-6 w-6 cursor-pointer items-center justify-center rounded focus:outline-none focus:ring-2 focus:ring-indigo-500 ${shrinked ? "bg-gray-200" : "bg-gray-100"} text-gray-600 hover:bg-primary-200 hover:text-primary-800 ${
shrinked ? "mx-auto" : "mr-4"
} transition-all duration-200 ease-in-out`}
} transition-all ease-in-out`}
onClick={toggle}
>
<CareIcon
icon={shrinked ? "l-arrow-bar-right" : "l-layout-sidebar-alt"}
className={`text-lg ${
shrinked ? "" : ""
} transition-all delay-150 duration-300 ease-out`}
className="text-lg transition"
/>
</button>
</TooltipTrigger>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Common/Sidebar/SidebarUserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SidebarUserCard: React.FC<SidebarUserCardProps> = ({ shrinked }) => {
>
<div
id="user-profile-name"
className={`flex flex-1 items-center justify-start transition ${shrinked ? "" : ""}`}
className="flex flex-1 items-center justify-start transition"
>
<div className="flex-none text-lg">
<Avatar
Expand Down

0 comments on commit 82091c2

Please sign in to comment.