From a551308297cfd750d33aebab92d66aeeb4d66439 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Wed, 1 May 2024 05:12:26 +0200 Subject: [PATCH] Added playground button on Store card --- .../src/components/cardComponent/index.tsx | 140 ++++++++---------- 1 file changed, 65 insertions(+), 75 deletions(-) diff --git a/src/frontend/src/components/cardComponent/index.tsx b/src/frontend/src/components/cardComponent/index.tsx index 1a5a641d9..20f44cbde 100644 --- a/src/frontend/src/components/cardComponent/index.tsx +++ b/src/frontend/src/components/cardComponent/index.tsx @@ -249,31 +249,22 @@ export default function CollectionCardComponent({ )} - {data.user_created && data.user_created.username && ( - - by {data.user_created.username} - {data.last_tested_version && ( - <> - {" "} - |{" "} - +
+ {data.user_created && data.user_created.username && ( + + by {data.user_created.username} + {data.last_tested_version && ( + <> {" "} - ⛓︎ v{data.last_tested_version} - - - )} - - )} - - -
{data.description}
-
- -
- - -
-
+ |{" "} + + {" "} + ⛓︎ v{data.last_tested_version} + + + )} + + )}
{data.tags && data.tags.length > 0 && @@ -288,59 +279,58 @@ export default function CollectionCardComponent({ ))}
+
+ + +
{data.description}
+
+ +
+ + +
+
+ {playground && data?.metadata !== undefined ? ( + + ) : ( +
+ )} {data.liked_by_count != undefined && (
- {playground && data?.metadata !== undefined && ( - - - - )} {onDelete && data?.metadata !== undefined ? (