Skip to content

Commit

Permalink
🐛 lengthen term width to fit associated archetypes text
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Dec 14, 2023
1 parent 1a2f183 commit 9aa9f63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export const ApplicationDetailDrawer: React.FC<
isCompact
columnModifier={{ default: "1Col" }}
horizontalTermWidthModifier={{
default: "14ch",
default: "15ch",
}}
>
<DescriptionListGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ApplicationReviewStatus: React.FC<
> = ({ application }) => {
const { t } = useTranslation();

const { archetypes, isFetching } = useFetchArchetypes();
const { archetypes, isFetching, error } = useFetchArchetypes();
const isAppReviewed = !!application.review;

const applicationArchetypes = application.archetypes?.map((archetypeRef) => {
Expand All @@ -27,6 +27,10 @@ export const ApplicationReviewStatus: React.FC<
applicationArchetypes?.filter((archetype) => !!archetype?.review).length ||
0;

if (error) {
return <EmptyTextMessage message={t("terms.notAvailable")} />;
}

if (isFetching) {
return <Spinner size="md" />;
}
Expand All @@ -43,9 +47,5 @@ export const ApplicationReviewStatus: React.FC<
statusPreset = "NotStarted";
}

if (!applicationArchetypes || applicationArchetypes.length === 0) {
return <EmptyTextMessage message={t("terms.notAvailable")} />;
}

return <IconedStatus preset={statusPreset} tooltipCount={tooltipCount} />;
};

0 comments on commit 9aa9f63

Please sign in to comment.