From 6713b9e4c990d0157343b09da6cea74f8a0605e4 Mon Sep 17 00:00:00 2001 From: Roland Date: Thu, 7 Sep 2023 20:39:35 -0600 Subject: [PATCH] Creating TagPlaceholder to be used while Tags are loading. --- app/src/Tags.js | 12 +++++++++++- app/src/components/Placeholder.js | 6 ++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/app/src/Tags.js b/app/src/Tags.js index 7938d57e..288dd394 100644 --- a/app/src/Tags.js +++ b/app/src/Tags.js @@ -5,6 +5,8 @@ import { Divider, Form, Grid, + GridColumn, + GridRow, Label, LabelGroup, TableBody, @@ -31,6 +33,7 @@ import {HexColorPicker} from "react-colorful"; import {useRecurringTimeout} from "./hooks/customHooks"; import {Media, ThemeContext} from "./contexts/contexts"; import {Link, useNavigate} from "react-router-dom"; +import {TagPlaceholder} from "./components/Placeholder"; export const TagsContext = React.createContext({ NameToTagLabel: null, @@ -419,7 +422,14 @@ export const TagsSelector = ({ export const TagsDashboard = () => { const {tagNames, TagsLinkGroup} = React.useContext(TagsContext); - let availableTagsGroup = ; + const tagPlaceholder = ; + let availableTagsGroup = + + {tagPlaceholder} + {tagPlaceholder} + {tagPlaceholder} + + ; if (tagNames && tagNames.length >= 1) { availableTagsGroup = ; } else if (tagNames === undefined) { diff --git a/app/src/components/Placeholder.js b/app/src/components/Placeholder.js index ce27b1ab..debd9fa2 100644 --- a/app/src/components/Placeholder.js +++ b/app/src/components/Placeholder.js @@ -47,3 +47,9 @@ export function TextPlaceholder() { } + +export function TagPlaceholder() { + return + + +}