Skip to content

Commit

Permalink
refactor: improve ActionCard display
Browse files Browse the repository at this point in the history
  • Loading branch information
vhu-axelor committed Dec 19, 2024
1 parent dd5a57b commit b5e6bdf
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions packages/ui/src/components/organisms/ActionCard/ActionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,17 +252,18 @@ const ActionCard = ({
disabled={actionList[0].disabled}
/>
)}
{displaySeeActionsButton && (
<InfoButton
style={getVerticalActionStyle(
_quickAction == null || _quickAction.large,
)}
iconName="three-dots"
iconColor={Colors.secondaryColor_dark.background}
indication={translator('Base_SeeActions')}
onPress={() => setIsActionsVisible(current => !current)}
/>
)}
{displaySeeActionsButton &&
(!isActionsVisible || _quickAction != null) && (
<InfoButton
style={getVerticalActionStyle(
_quickAction == null || _quickAction.large,
)}
iconName="three-dots"
iconColor={Colors.secondaryColor_dark.background}
indication={translator('Base_SeeActions')}
onPress={() => setIsActionsVisible(current => !current)}
/>
)}
{_quickAction != null && (
<InfoButton
style={getVerticalActionStyle(
Expand Down

0 comments on commit b5e6bdf

Please sign in to comment.