diff --git a/apps/admin-x-settings/src/admin-x-ds/assets/icons/money-bags.svg b/apps/admin-x-settings/src/admin-x-ds/assets/icons/money-bags.svg new file mode 100644 index 0000000000..6a126bd0e3 --- /dev/null +++ b/apps/admin-x-settings/src/admin-x-ds/assets/icons/money-bags.svg @@ -0,0 +1 @@ +money-bags \ No newline at end of file diff --git a/apps/admin-x-settings/src/admin-x-ds/global/List.tsx b/apps/admin-x-settings/src/admin-x-ds/global/List.tsx index d0b990662e..b972d9af76 100644 --- a/apps/admin-x-settings/src/admin-x-ds/global/List.tsx +++ b/apps/admin-x-settings/src/admin-x-ds/global/List.tsx @@ -38,7 +38,7 @@ const List: React.FC = ({title, titleSeparator, children, actions, hi <> {pageTitle && {pageTitle}} - + {children} diff --git a/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailModal.tsx b/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailModal.tsx index c7783c8f21..063bf3b1dd 100644 --- a/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailModal.tsx +++ b/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailModal.tsx @@ -155,7 +155,7 @@ const TierDetailModal: React.FC = ({tier}) => { } onMove={benefits.moveItem} /> - + = ({tier, updateTier}) => { if (tier.active) { return ( - { + { updateTier({...tier, active: false}); }} /> ); @@ -34,11 +35,20 @@ const TierActions: React.FC = ({tier, updateTier}) => { }; const TiersList: React.FC = ({ + tab, tiers, updateTier }) => { + if (!tiers.length) { + return ( + + No {tab === 'active-tiers' ? 'active' : 'archived'} tiers found. + + ); + } + return ( - + {tiers.map((tier) => { return (