Skip to content

Commit

Permalink
fix(pages): move export button to left
Browse files Browse the repository at this point in the history
  • Loading branch information
FussuChalice committed Dec 16, 2024
1 parent 4b59d2f commit 7dcd2dc
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,23 @@ const useFieldServiceGroups = () => {

return (
<>
{groups.length > 1 && (
{groups.length !== 0 && (
<Button
variant="secondary"
onClick={handleOpenReorder}
startIcon={<IconReorder color="var(--accent-main)" />}
onClick={handleExport}
startIcon={<IconPrint color="var(--accent-main)" />}
>
{t('tr_reorderGroups')}
{t('tr_export')}
</Button>
)}

{groups.length !== 0 && (
{groups.length > 1 && (
<Button
variant="secondary"
onClick={handleExport}
startIcon={<IconPrint color="var(--accent-main)" />}
onClick={handleOpenReorder}
startIcon={<IconReorder color="var(--accent-main)" />}
>
{t('tr_export')}
{t('tr_reorderGroups')}
</Button>
)}

Expand Down

0 comments on commit 7dcd2dc

Please sign in to comment.