Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit 46a7c96

Browse files
committed
insurer details updated
1 parent 14a5ec5 commit 46a7c96

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

packages/layout/src/components/cards/insurer/views/preview/preview.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,25 @@ export const Preview: React.FC<any> = () => {
3131
cfg={{ width: 5, flex: '0 0 auto', flexDirection: 'column', pl: 4 }}
3232
>
3333
<UnderlinedButton>{i18n.preview.buttons.four}</UnderlinedButton>
34-
<Flex cfg={{ mt: 1, flexDirection: 'column', mb: 2 }}>
35-
<P>Phone: {insurer.telephoneNumber}</P>
36-
<P>Email: {insurer.emailAddress}</P>
34+
<Flex cfg={{ my: 2, flexDirection: 'column' }}>
35+
{insurer.telephoneNumber && (
36+
<>
37+
<H4 cfg={{ lineHeight: 3 }}>Phone</H4>
38+
<P>{insurer.telephoneNumber}</P>
39+
</>
40+
)}
41+
{insurer.emailAddress && (
42+
<>
43+
<H4 cfg={{ lineHeight: 3 }}>Email</H4>
44+
<P>{insurer.emailAddress}</P>
45+
</>
46+
)}
3747
</Flex>
3848
<UnderlinedButton isOpen={false} onClick={() => send('EDIT_INSURER')}>
3949
{i18n.preview.buttons.five}
4050
</UnderlinedButton>
4151
<Flex cfg={{ mt: 1, flexDirection: 'column' }}>
42-
<P>Ref: {insurer.insurerCompanyReference}</P>
52+
<P>{insurer.insurerCompanyReference}</P>
4353
</Flex>
4454
</Flex>
4555
</Flex>

packages/layout/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export * from './components/info/info';
66
export * from './components/sidebar/sidebar';
77
export * from './components/cards/trustee/trustee';
88
export * from './components/cards/employer/employer';
9+
export * from './components/cards/insurer/insurer';
910
export * from './components/buttons/buttons';
1011
export * from './components/buttons/links';
1112
export * from './components/warning/warning';

0 commit comments

Comments
 (0)