Skip to content

Commit f5ab031

Browse files
Updated deprecated style libraries and imports
1 parent f5ee014 commit f5ab031

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

client/components/mma/delivery/address/DeliveryAddressForm.tsx

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { css } from '@emotion/react';
22
import {
3-
brand,
43
from,
54
headline,
6-
neutral,
75
palette,
86
space,
97
textSans,
@@ -18,14 +16,11 @@ import {
1816
import type { ChangeEvent, Dispatch, FormEvent, SetStateAction } from 'react';
1917
import { useContext, useState } from 'react';
2018
import { Link, useLocation, useNavigate } from 'react-router-dom';
21-
import type { DeliveryAddress } from '../../../../../shared/productResponse';
22-
import type {
23-
ProductType,
24-
WithProductType,
25-
} from '../../../../../shared/productTypes';
26-
import { GROUPED_PRODUCT_TYPES } from '../../../../../shared/productTypes';
27-
import { addressChangeAffectedInfo } from '../../../../utilities/deliveryAddress';
28-
import { flattenEquivalent } from '../../../../utilities/utils';
19+
import { addressChangeAffectedInfo } from '@/client/utilities/deliveryAddress';
20+
import { flattenEquivalent } from '@/client/utilities/utils';
21+
import type { DeliveryAddress } from '@/shared/productResponse';
22+
import type { ProductType, WithProductType } from '@/shared/productTypes';
23+
import { GROUPED_PRODUCT_TYPES } from '@/shared/productTypes';
2924
import { CallCentreEmailAndNumbers } from '../../../shared/CallCenterEmailAndNumbers';
3025
import { CallCentreNumbers } from '../../../shared/CallCentreNumbers';
3126
import { Input } from '../../../shared/Input';
@@ -156,7 +151,7 @@ const Form = (props: FormProps) => {
156151
<form action="#" onSubmit={handleFormSubmit}>
157152
<fieldset
158153
css={{
159-
border: `1px solid ${neutral['86']}`,
154+
border: `1px solid ${palette.neutral['86']}`,
160155
padding: '48px 14px 14px',
161156
position: 'relative',
162157
marginBottom: `${space[5]}px`,
@@ -175,8 +170,9 @@ const Form = (props: FormProps) => {
175170
${textSans.medium()};
176171
font-weight: bold;
177172
line-height: 48px;
178-
background-color: ${neutral['97']};
179-
border-bottom: 1px solid ${neutral['86']};
173+
background-color: ${palette.neutral['97']};
174+
border-bottom: 1px solid
175+
${palette.neutral['86']};
180176
`}
181177
>
182178
Delivery address
@@ -272,7 +268,7 @@ const Form = (props: FormProps) => {
272268
<label
273269
css={css`
274270
display: block;
275-
color: ${neutral['7']};
271+
color: ${palette.neutral['7']};
276272
${textSans.medium()};
277273
font-weight: bold;
278274
`}
@@ -311,7 +307,7 @@ const Form = (props: FormProps) => {
311307
css={css`
312308
width: 100%;
313309
border: 2px solid
314-
${neutral['60']};
310+
${palette.neutral['60']};
315311
padding: 12px;
316312
resize: vertical;
317313
${textSans.medium()};
@@ -322,7 +318,8 @@ const Form = (props: FormProps) => {
322318
display: block;
323319
text-align: right;
324320
${textSans.small()};
325-
color: ${neutral[46]};
321+
color: ${palette
322+
.neutral[46]};
326323
`}
327324
>
328325
{
@@ -335,7 +332,8 @@ const Form = (props: FormProps) => {
335332
css={css`
336333
display: block;
337334
${textSans.medium()};
338-
border: 4px solid ${brand[500]};
335+
border: 4px solid
336+
${palette.brand[500]};
339337
padding: ${space[5]}px
340338
${space[5]}px ${space[5]}px
341339
49px;
@@ -367,7 +365,9 @@ const Form = (props: FormProps) => {
367365
`}
368366
>
369367
<InfoIconDark
370-
fillColor={brand[500]}
368+
fillColor={
369+
palette.brand[500]
370+
}
371371
/>
372372
</i>
373373
Delivery instructions are only
@@ -424,7 +424,7 @@ const Form = (props: FormProps) => {
424424
${textSans.medium()};
425425
font-weight: bold;
426426
margin-left: 22px;
427-
color: ${brand[400]};
427+
color: ${palette.brand[400]};
428428
`}
429429
>
430430
Cancel
@@ -437,15 +437,15 @@ const Form = (props: FormProps) => {
437437
css={css`
438438
${textSans.medium()};
439439
margin: ${space[12]}px 0 0;
440-
color: ${neutral[46]};
440+
color: ${palette.neutral[46]};
441441
`}
442442
>
443443
If you need separate delivery addresses for each of
444444
your subscriptions, please{' '}
445445
<span
446446
css={css`
447447
cursor: pointer;
448-
color: ${brand[500]};
448+
color: ${palette.brand[500]};
449449
text-decoration: underline;
450450
`}
451451
onClick={() =>
@@ -493,13 +493,13 @@ const Form = (props: FormProps) => {
493493
left: ${space[5]}px;
494494
`}
495495
>
496-
<InfoIconDark fillColor={brand[500]} />
496+
<InfoIconDark fillColor={palette.brand[500]} />
497497
</i>
498498
Changed address? Please{' '}
499499
<span
500500
css={css`
501501
cursor: pointer;
502-
color: ${brand[500]};
502+
color: ${palette.brand[500]};
503503
text-decoration: underline;
504504
`}
505505
onClick={() =>
@@ -526,7 +526,7 @@ export const DeliveryAddressUpdate = (props: WithProductType<ProductType>) => {
526526
useContext(ContactIdContext);
527527

528528
const subHeadingCss = `
529-
border-top: 1px solid ${neutral['86']};
529+
border-top: 1px solid ${palette.neutral['86']};
530530
${headline.small()};
531531
font-weight: bold;
532532
margin-top: 50px;

0 commit comments

Comments
 (0)