diff --git a/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx b/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx index 344f57357b..aacd370642 100644 --- a/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx @@ -1,5 +1,6 @@ import useFeatureFlag from '../../../../hooks/useFeatureFlag'; import {Button, Tab, TabView} from '@tryghost/admin-x-design-system'; +import {ButtonGroup, ButtonProps} from '@tryghost/admin-x-design-system'; import {Modal} from '@tryghost/admin-x-design-system'; import {NoValueLabel} from '@tryghost/admin-x-design-system'; import {SortMenu} from '@tryghost/admin-x-design-system'; @@ -189,6 +190,24 @@ export const OffersIndexModal = () => { ; + const buttons: ButtonProps[] = [ + { + key: 'cancel-modal', + label: 'Cancel', + onClick: () => { + modal.remove(); + updateRoute('offers'); + } + }, + { + key: 'new-offer', + icon: 'add', + label: 'New offer', + color: 'green', + onClick: () => updateRoute('offers/new') + } + ]; + return { updateRoute('offers'); @@ -196,16 +215,12 @@ export const OffersIndexModal = () => { animate={false} backDropClick={false} cancelLabel='' + footer={false} header={false} height='full' size='lg' testId='offers-modal' width={1140} - stickyFooter - onOk={() => { - modal.remove(); - updateRoute('offers'); - }} >
@@ -219,7 +234,7 @@ export const OffersIndexModal = () => { onTabChange={setSelectedTab} />
-