1
1
import { css } from '@emotion/react' ;
2
2
import {
3
- brand ,
4
3
from ,
5
4
headline ,
6
- neutral ,
7
5
palette ,
8
6
space ,
9
7
textSans ,
@@ -18,14 +16,11 @@ import {
18
16
import type { ChangeEvent , Dispatch , FormEvent , SetStateAction } from 'react' ;
19
17
import { useContext , useState } from 'react' ;
20
18
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' ;
29
24
import { CallCentreEmailAndNumbers } from '../../../shared/CallCenterEmailAndNumbers' ;
30
25
import { CallCentreNumbers } from '../../../shared/CallCentreNumbers' ;
31
26
import { Input } from '../../../shared/Input' ;
@@ -156,7 +151,7 @@ const Form = (props: FormProps) => {
156
151
< form action = "#" onSubmit = { handleFormSubmit } >
157
152
< fieldset
158
153
css = { {
159
- border : `1px solid ${ neutral [ '86' ] } ` ,
154
+ border : `1px solid ${ palette . neutral [ '86' ] } ` ,
160
155
padding : '48px 14px 14px' ,
161
156
position : 'relative' ,
162
157
marginBottom : `${ space [ 5 ] } px` ,
@@ -175,8 +170,9 @@ const Form = (props: FormProps) => {
175
170
${ textSans . medium ( ) } ;
176
171
font- weight: bold;
177
172
line-height: 48px;
178
- background- color : ${ neutral [ '97' ] } ;
179
- bor der- botto m: 1px solid ${ neutral [ '86' ] } ;
173
+ background- color : ${ palette . neutral [ '97' ] } ;
174
+ bor der- botto m: 1px solid
175
+ ${ palette . neutral [ '86' ] } ;
180
176
` }
181
177
>
182
178
Delivery address
@@ -272,7 +268,7 @@ const Form = (props: FormProps) => {
272
268
< label
273
269
css = { css `
274
270
dis play: block;
275
- color : ${ neutral [ '7' ] } ;
271
+ color : ${ palette . neutral [ '7' ] } ;
276
272
${ textSans . medium ( ) } ;
277
273
font- weight: bold;
278
274
` }
@@ -311,7 +307,7 @@ const Form = (props: FormProps) => {
311
307
css = { css `
312
308
width: 100%;
313
309
bor der: 2px solid
314
- ${ neutral [ '60' ] } ;
310
+ ${ palette . neutral [ '60' ] } ;
315
311
padding: 12px;
316
312
resize: vertical;
317
313
${ textSans . medium ( ) } ;
@@ -322,7 +318,8 @@ const Form = (props: FormProps) => {
322
318
dis play: block;
323
319
text- align: right;
324
320
${ textSans . small ( ) } ;
325
- color : ${ neutral [ 46 ] } ;
321
+ color : ${ palette
322
+ . neutral [ 46 ] } ;
326
323
` }
327
324
>
328
325
{
@@ -335,7 +332,8 @@ const Form = (props: FormProps) => {
335
332
css = { css `
336
333
dis play: block;
337
334
${ textSans . medium ( ) } ;
338
- bor der: 4px solid ${ brand [ 500 ] } ;
335
+ bor der: 4px solid
336
+ ${ palette . brand [ 500 ] } ;
339
337
padding: ${ space [ 5 ] } px
340
338
${ space [ 5 ] } px ${ space [ 5 ] } px
341
339
49px;
@@ -367,7 +365,9 @@ const Form = (props: FormProps) => {
367
365
` }
368
366
>
369
367
< InfoIconDark
370
- fillColor = { brand [ 500 ] }
368
+ fillColor = {
369
+ palette . brand [ 500 ]
370
+ }
371
371
/>
372
372
</ i >
373
373
Delivery instructions are only
@@ -424,7 +424,7 @@ const Form = (props: FormProps) => {
424
424
${ textSans . medium ( ) } ;
425
425
font- weight: bold;
426
426
margin- left: 22px;
427
- color : ${ brand [ 400 ] } ;
427
+ color : ${ palette . brand [ 400 ] } ;
428
428
` }
429
429
>
430
430
Cancel
@@ -437,15 +437,15 @@ const Form = (props: FormProps) => {
437
437
css = { css `
438
438
${ textSans . medium ( ) } ;
439
439
margin: ${ space [ 12 ] } px 0 0;
440
- color : ${ neutral [ 46 ] } ;
440
+ color : ${ palette . neutral [ 46 ] } ;
441
441
` }
442
442
>
443
443
If you need separate delivery addresses for each of
444
444
your subscriptions, please{ ' ' }
445
445
< span
446
446
css = { css `
447
447
cursor : pointer;
448
- color : ${ brand [ 500 ] } ;
448
+ color : ${ palette . brand [ 500 ] } ;
449
449
text- decor ation: underline;
450
450
` }
451
451
onClick = { ( ) =>
@@ -493,13 +493,13 @@ const Form = (props: FormProps) => {
493
493
left: ${ space [ 5 ] } px;
494
494
` }
495
495
>
496
- < InfoIconDark fillColor = { brand [ 500 ] } />
496
+ < InfoIconDark fillColor = { palette . brand [ 500 ] } />
497
497
</ i >
498
498
Changed address? Please{ ' ' }
499
499
< span
500
500
css = { css `
501
501
cursor : pointer;
502
- color : ${ brand [ 500 ] } ;
502
+ color : ${ palette . brand [ 500 ] } ;
503
503
text- decor ation: underline;
504
504
` }
505
505
onClick = { ( ) =>
@@ -526,7 +526,7 @@ export const DeliveryAddressUpdate = (props: WithProductType<ProductType>) => {
526
526
useContext ( ContactIdContext ) ;
527
527
528
528
const subHeadingCss = `
529
- border-top: 1px solid ${ neutral [ '86' ] } ;
529
+ border-top: 1px solid ${ palette . neutral [ '86' ] } ;
530
530
${ headline . small ( ) } ;
531
531
font-weight: bold;
532
532
margin-top: 50px;
0 commit comments