Skip to content

Commit

Permalink
refactor: move quickaction to posContent and add divider
Browse files Browse the repository at this point in the history
  • Loading branch information
filipemarins committed Dec 29, 2022
1 parent ac75430 commit 9e0eb7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const OmnichannelRoomHeader: FC<OmnichannelRoomHeaderProps> = ({ slots: parentSl
{<BackButton routeName={name} />}
</TemplateHeader.ToolBox>
),
...(!isMobile && { insideContent: <QuickActions room={room} /> }),
...(!isMobile && { posContent: <QuickActions room={room} /> }),
}),
[isMobile, name, parentSlot, room],
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const QuickActions: FC<QuickActionsProps> = ({ room, className }) => {
const { visibleActions, actionDefault } = useQuickActions(room);

return (
<Header.ToolBox aria-label={t('Omnichannel_quick_actions')}>
<Header.ToolBox aria-label={t('Omnichannel_quick_actions')} mie={0}>
{visibleActions.map(({ id, color, icon, title, action = actionDefault }, index) => {
const props = {
id,
Expand All @@ -33,6 +33,7 @@ const QuickActions: FC<QuickActionsProps> = ({ room, className }) => {

return <Header.ToolBox.Action {...props} />;
})}
{visibleActions.length > 0 && <Header.ToolBox.Divider />}
</Header.ToolBox>
);
};
Expand Down

0 comments on commit 9e0eb7c

Please sign in to comment.