Skip to content

Commit

Permalink
ui: Delete Card component
Browse files Browse the repository at this point in the history
  • Loading branch information
domdomegg committed Apr 26, 2024
1 parent 86aaf61 commit 4b695c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/ui/src/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clsx from 'clsx';
import { ButtonProps, LinkOrButton } from './Button';
import { LinkOrButton, LinkOrButtonProps } from './LinkOrButton';

export type CardProps = React.PropsWithChildren<{
className?: string
Expand All @@ -13,7 +13,7 @@ export const Card: React.FC<CardProps> = ({ children, className }) => {
);
};

export const CardButton: React.FC<ButtonProps> = ({ className, ...rest }) => {
export const CardButton: React.FC<LinkOrButtonProps> = ({ className, ...rest }) => {
return (
<LinkOrButton className={clsx('border border-neutral-500 rounded px-8 pb-4 text-black transition-all duration-200 inline-block cursor-pointer data-[hovered]:border-bluedot-normal data-[hovered]:bg-bluedot-lighter data-[focus-visible]:border-bluedot-normal data-[focus-visible]:bg-bluedot-lighter data-[pressed]:border-bluedot-normal data-[pressed=true]:bg-bluedot-normal data-[pressed=true]:text-white outline-none [text-align:inherit]', className)} {...rest} />
);
Expand Down

0 comments on commit 4b695c9

Please sign in to comment.