feat(Warehouses|Branches): highlight the primary warehouses and branches.

This commit is contained in:
a.bouhuolia
2022-03-21 20:10:10 +02:00
parent 2c0291da84
commit 09f4d0fbe0
6 changed files with 39 additions and 7 deletions

View File

@@ -80,11 +80,14 @@ export function WarehousesGridItemBox({
country,
email,
phoneNumber,
primary,
}) {
return (
<WarehouseBoxRoot>
<WarehouseHeader>
<WarehouseTitle>{title}</WarehouseTitle>
<WarehouseTitle>
{title} {primary && <Icon icon={'star-18dp'} iconSize={16} />}
</WarehouseTitle>
<WarehouseCode>{code}</WarehouseCode>
<WarehouseIcon>
<Icon icon="warehouse-16" iconSize={20} />
@@ -145,6 +148,13 @@ export const WarehouseTitle = styled.div`
white-space: nowrap;
font-weight: 500;
line-height: 1;
.bp3-icon {
margin: 0;
margin-left: 2px;
vertical-align: top;
color: #e1b31d;
}
`;
const WarehouseCode = styled.div`