Skip to content

Commit

Permalink
add link to create new variant if none
Browse files Browse the repository at this point in the history
  • Loading branch information
zachariah-at-msupply committed Dec 29, 2024
1 parent cafbc17 commit 2aa9fd0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ export const ItemVariantsTab = ({
</AppBarButtonsPortal>
<Box flex={1} marginX={2}>
{itemVariants.length === 0 ? (
<NothingHere body={t('messages.no-item-variants')} />
<>
<NothingHere
body={t('messages.no-item-variants')}
onCreate={() => onOpen()}
/>
</>
) : (
itemVariants.map(v => (
<ItemVariant
Expand Down

0 comments on commit 2aa9fd0

Please sign in to comment.