From 6ee70acdc5dbcc34cc7a09472881a274ef41f0d9 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Thu, 22 Aug 2024 20:21:40 -0400 Subject: [PATCH] style: Add Radix Tabs, more styling changes --- client/src/components/Artifacts/Artifacts.tsx | 219 +++++++++--------- 1 file changed, 105 insertions(+), 114 deletions(-) diff --git a/client/src/components/Artifacts/Artifacts.tsx b/client/src/components/Artifacts/Artifacts.tsx index 79cc6d9001..d5778ce571 100644 --- a/client/src/components/Artifacts/Artifacts.tsx +++ b/client/src/components/Artifacts/Artifacts.tsx @@ -77,132 +77,123 @@ export default function Artifacts() { } return ( -
-
- {/* Header */} -
-
- -

- {currentArtifact.title} -

-
-
-
- -
+
+ + + Preview + + + Code + + +
-
-
- {/* Content */} -
- {activeTab === 'code' ? ( + {/* Content */} +
               {currentArtifact.content}
             
- ) : ( +
+ - )} -
+ - {/* Footer */} -
-
- - Last edited 7 hours ago - -
-
- - - + {/* Footer */} +
+
+ + {`${currentArtifactIndex + 1} / ${ + artifactIds.length + }`} + +
+
+ + + +
-
+ ); }