Skip to content

Commit

Permalink
chore: remove count
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Mar 2, 2024
1 parent 54b332b commit 7710490
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/ui/src/TabButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import cn from '../cn';
interface TabButtonProps {
active: boolean;
className?: string;
count?: string;
icon?: ReactNode;
name: string;
onClick: () => void;
Expand All @@ -18,7 +17,6 @@ interface TabButtonProps {
const TabButton: FC<TabButtonProps> = ({
active,
className = '',
count,
icon,
name,
onClick,
Expand Down Expand Up @@ -51,18 +49,6 @@ const TabButton: FC<TabButtonProps> = ({
>
{icon}
<span className={cn({ 'hidden sm:block': !showOnSm })}>{name}</span>
{count ? (
<span
className={cn(
active
? 'bg-gray-500 text-white dark:bg-gray-500/80 dark:text-white'
: 'bg-gray-200 text-gray-500 dark:bg-gray-700 dark:text-gray-400',
'ml-2 rounded-2xl px-2 py-0.5 text-xs font-bold'
)}
>
{count}
</span>
) : null}
</button>
);
};
Expand Down

1 comment on commit 7710490

@vercel
Copy link

@vercel vercel bot commented on 7710490 Mar 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web – ./apps/web

web-heyxyz.vercel.app
web-git-main-heyxyz.vercel.app
heyxyz.vercel.app
hey.xyz

Please sign in to comment.