From 3cdcedddaa4cc3efd30031968ba9d7265e8f1c45 Mon Sep 17 00:00:00 2001 From: highperfocused Date: Sun, 13 Apr 2025 13:11:30 +0200 Subject: [PATCH] wip pt4 --- components/upload-component.tsx | 88 +++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 37 deletions(-) diff --git a/components/upload-component.tsx b/components/upload-component.tsx index 0d94bf3..cbbbd80 100644 --- a/components/upload-component.tsx +++ b/components/upload-component.tsx @@ -458,52 +458,66 @@ const UploadComponent = () => { } return ( -
+
{showUploadForm ? ( -
-
- - -
+ + + Upload Image + Select an image to upload to {serverChoice} + + + +
+ + +
-
- - -
+
+ + +
- {previewUrl && ( -
- Preview -
- )} + {previewUrl && ( +
+ Preview +
+ )} - {isLoading ? ( - - ) : ( - - )} - + {isLoading ? ( + + ) : ( + + )} + +
+
) : uploadResponse ? ( ) : ( -
- -

Processing upload...

-
+ + + +

Processing upload...

+
+
)}
) } -export default UploadComponent \ No newline at end of file +export default UploadComponent