From 9e6958ce3bb6bb5a36955b0ad751b1bbff40eff7 Mon Sep 17 00:00:00 2001 From: Arif Rahman Hakim Date: Tue, 27 Aug 2024 11:45:59 +0800 Subject: [PATCH] style: add column type image when create/update service --- src/components/service/ServiceItem.tsx | 21 ++++++++++++--------- src/pages/CreateServicePage.tsx | 3 +++ src/pages/DetailServicePage.tsx | 4 ++++ 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/components/service/ServiceItem.tsx b/src/components/service/ServiceItem.tsx index 4b30705..94986c6 100644 --- a/src/components/service/ServiceItem.tsx +++ b/src/components/service/ServiceItem.tsx @@ -66,12 +66,15 @@ const ServiceItem = ({ service, onItemDeleted }: ServiceItemProps) => { return (
- -
+ {!service.hasLogo ? ( + + ) : null} +
{ size="small" /> -
+
{service.hasLogo ? ( { /> ) : null}
-
+
{service.name}
{service.description}
-
+
diff --git a/src/pages/CreateServicePage.tsx b/src/pages/CreateServicePage.tsx index 226a34e..2b7c4f6 100644 --- a/src/pages/CreateServicePage.tsx +++ b/src/pages/CreateServicePage.tsx @@ -202,6 +202,9 @@ const CreateServicePage = () => { + + Apakah berupa logo? + { teams: service.teams.map((item: { team: Team }) => item.team.id), tags: service.tags, image: service.imageUrl, + hasLogo: service.hasLogo, username: service.credential?.username, password: service.credential?.password, note: service.credential?.note, @@ -247,6 +248,9 @@ const DetailServicePage = () => { /> + + Apakah berupa logo? +