From 74a7f2560245cba3d25757332a68b45314f15657 Mon Sep 17 00:00:00 2001 From: andrewHEguardian <114918544+andrewHEguardian@users.noreply.github.com> Date: Mon, 16 Oct 2023 17:07:10 +0100 Subject: [PATCH] remove option to re-amend amendment --- .../components/mma/holiday/HolidayReview.tsx | 32 ++----------------- 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/client/components/mma/holiday/HolidayReview.tsx b/client/components/mma/holiday/HolidayReview.tsx index d5a999b48..9578bcf52 100644 --- a/client/components/mma/holiday/HolidayReview.tsx +++ b/client/components/mma/holiday/HolidayReview.tsx @@ -2,7 +2,7 @@ import { css } from '@emotion/react'; import { space, until } from '@guardian/source-foundations'; import { Button, InlineError } from '@guardian/source-react-components'; import { useContext, useState } from 'react'; -import { Link, Navigate, useLocation, useNavigate } from 'react-router-dom'; +import { Link, Navigate, useLocation } from 'react-router-dom'; import type { DateRange } from '../../../../shared/dates'; import { DATE_FNS_INPUT_FORMAT, dateString } from '../../../../shared/dates'; import type { ProductDetail } from '../../../../shared/productResponse'; @@ -95,10 +95,8 @@ export const HolidayReview = () => { publicationsImpacted, holidayStopResponse, existingHolidayStopToAmend, - setExistingHolidayStopToAmend, } = useContext(HolidayStopsContext) as HolidayStopsContextInterface; - const navigate = useNavigate(); const location = useLocation(); const routerState = location.state as HolidayStopsRouterState; @@ -217,7 +215,7 @@ export const HolidayReview = () => { css={[ buttonBarCss, { - justifyContent: 'space-between', + justifyContent: 'flex-end', marginTop: '20px', [until.mobileMedium]: { flexDirection: 'column', @@ -226,37 +224,11 @@ export const HolidayReview = () => { }, ]} > -
- -