feat: optimize style of card component.

This commit is contained in:
a.bouhuolia
2021-12-23 11:10:07 +02:00
parent 7150f12a01
commit 1ad2117c37
5 changed files with 18 additions and 18 deletions

View File

@@ -28,11 +28,6 @@ export default function CustomerDetailsHeader() {
<h3 class="big-number">{customer.formatted_balance}</h3>
</DetailItem>
<DetailItem
label={<T id={'customer.drawer.label.customer_name'} />}
name={'name'}
children={customer?.display_name}
/>
<DetailItem
label={<T id={'customer.drawer.label.customer_type'} />}
name={'type'}
@@ -44,6 +39,13 @@ export default function CustomerDetailsHeader() {
</DetailsMenu>
<DetailsMenu direction={'horizantal'} minLabelSize={'175px'}>
<DetailItem
label={<T id={'customer.drawer.label.customer_name'} />}
name={'name'}
>
<strong>{customer?.display_name}</strong>
</DetailItem>
<DetailItem
label={<T id={'customer.drawer.label.company_name'} />}
children={defaultTo(customer?.company_name, '--')}