From b803c0fed5fae1fd957a04ed9a2e66ba2f877a2d Mon Sep 17 00:00:00 2001 From: ozdentarikcan Date: Mon, 16 Dec 2024 19:04:58 +0300 Subject: [PATCH] Add loading screen --- frontend/src/components/TagType.tsx | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/frontend/src/components/TagType.tsx b/frontend/src/components/TagType.tsx index fa5d1cf..e32f945 100644 --- a/frontend/src/components/TagType.tsx +++ b/frontend/src/components/TagType.tsx @@ -134,15 +134,6 @@ export default function SubtypePage() { return (
- {isLoading ? ( -
- -
- ) : ( - <> {/* Header */}

{tagTypeId}

@@ -165,17 +156,18 @@ export default function SubtypePage() { } isLoading={isLoading} > - {tags.length > 0 ? ( - tags.map((tag) => ) - ) : ( -

- No related tags found for this tag type. -

- )} + {tags?.map((tag) => ) + } + {isLoading && ( +
+ +
+ )}
- - )} ); }