From c53efea451e02feb466c41611bfbea4db157b2c5 Mon Sep 17 00:00:00 2001 From: Matteo Guarnaccia Date: Thu, 16 Nov 2023 15:03:31 +0000 Subject: [PATCH] requested changes --- src/app.types.tsx | 6 +++--- src/manufacturer/manufacturer.component.tsx | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app.types.tsx b/src/app.types.tsx index 1782e4753..281c6e868 100644 --- a/src/app.types.tsx +++ b/src/app.types.tsx @@ -41,14 +41,14 @@ export interface CatalogueCategory { export interface AddManufacturer { name: string; - url?: string; + url?: string | null; address: AddAddress; telephone?: string | null; } export interface EditManufacturer { name?: string; - url?: string; + url?: string | null; address?: EditAddress; telephone?: string | null; id?: string | null; @@ -56,7 +56,7 @@ export interface EditManufacturer { export interface ManufacturerDetails { name: string; - url?: string; + url?: string | null; address: AddAddress; telephone: string | null; } diff --git a/src/manufacturer/manufacturer.component.tsx b/src/manufacturer/manufacturer.component.tsx index 899256310..116bdb461 100644 --- a/src/manufacturer/manufacturer.component.tsx +++ b/src/manufacturer/manufacturer.component.tsx @@ -197,9 +197,11 @@ function ManufacturerComponent() { borderRight: '1px solid #e0e0e0', }} > - - {item.url} - + {item.url && ( + + {item.url} + + )}