Skip to content

Commit

Permalink
119. Removed managers and settings section
Browse files Browse the repository at this point in the history
  • Loading branch information
Soumyadas15 committed Apr 5, 2024
1 parent a1fd7f8 commit c85f06d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 26 deletions.
20 changes: 0 additions & 20 deletions app/main/managers/page.tsx

This file was deleted.

8 changes: 4 additions & 4 deletions components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ export const Sidebar = ({
isActive = {pathname?.startsWith('/main/projects')}

/>
<SidebarItem
{/* <SidebarItem
label="Managers"
to="main/managers"
icon={ <User/>}
highlight="text-green-600"
isActive = {pathname?.startsWith('/main/managers')}
/>
/> */}
{user.role !== "CLIENT" && (
<SidebarItem
label="Dashboard"
Expand All @@ -75,13 +75,13 @@ export const Sidebar = ({
isActive = {pathname?.startsWith('/main/flows')}
/>
)}
<SidebarItem
{/* <SidebarItem
label="Settings"
to="main/settings"
icon={ <Settings/>}
highlight="text-green-600"
isActive = {pathname?.startsWith('/main/settings')}
/>
/> */}
</div>

</div>
Expand Down
13 changes: 11 additions & 2 deletions components/ui/animated-tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ export const AnimatedTooltip = ({ items }: AnimatedTooltipProps) => {
translateX.set(0);
};

// Logic to handle items greater than 4
const visibleItems = items.slice(0, 4);
const remainingCount = items.length - visibleItems.length;

return (
<>
{items.map((item, idx) => (
{visibleItems.map((item, idx) => (
<div
className="-mr-4 relative group"
key={item.name}
Expand Down Expand Up @@ -81,6 +85,11 @@ export const AnimatedTooltip = ({ items }: AnimatedTooltipProps) => {
</div>
</div>
))}
{remainingCount > 0 && (
<div className="flex items-center bg-white w-14 h-14 justify-center rounded-full group-hover:scale-105 group-hover:z-30">
+{remainingCount}
</div>
)}
</>
);
};
};

0 comments on commit c85f06d

Please sign in to comment.