Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
silvap-javier committed May 22, 2024
1 parent 7f57660 commit eeb82f6
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
import { useTheme } from "@peersyst/react-native-components";
import LabeledIconButton from "../LabeledIconButton/LabeledIconButton";
import { ActionIconButtonProps } from "./ActionIconButton.types";

export default function ActionIconButton({ isActive, action, ...rest }: ActionIconButtonProps): JSX.Element {
const {
palette: { gray, overlay },
} = useTheme();
return (
<LabeledIconButton
labelColor={isActive ? gray[0] : overlay[100]["48%"]}
variant={isActive ? "secondary" : "outlined"}
onPress={action}
{...rest}
/>
);
return <LabeledIconButton variant={isActive ? "secondary" : "outlined"} onPress={action} {...rest} />;
}

0 comments on commit eeb82f6

Please sign in to comment.