Skip to content

Commit

Permalink
Added active state
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzaizzat committed Apr 29, 2024
1 parent 4fcb55f commit 3608b11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/mobile/src/components/IconContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type IconContainerProps = {
onPress: () => void;
size?: 'xs' | 'sm' | 'md';
border?: boolean;
color?: 'default' | 'white' | 'black';
color?: 'default' | 'white' | 'black' | 'active';
} & GalleryTouchableOpacityProps;

export function IconContainer({
Expand All @@ -28,10 +28,11 @@ export function IconContainer({
md: 'h-8 w-8',
};

const colorVariants: { [color in 'default' | 'white' | 'black']: string } = {
const colorVariants: { [color in 'default' | 'white' | 'black' | 'active']: string } = {
default: 'bg-faint dark:bg-black-500',
white: 'bg-white dark:bg-black-900',
black: 'bg-black-900 dark:bg-white',
active: 'bg-porcelain dark:bg-white',
};

return (
Expand Down

0 comments on commit 3608b11

Please sign in to comment.