-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Add detail for archetype reviews in drawer
Signed-off-by: ibolton336 <[email protected]>
- Loading branch information
1 parent
94b56fb
commit 003b524
Showing
4 changed files
with
59 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...c/app/pages/applications/components/application-detail-drawer/reviewed-archetype-item.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { useFetchArchetypeById } from "@app/queries/archetypes"; | ||
import { Label } from "@patternfly/react-core"; | ||
import React from "react"; | ||
|
||
export const ReviewedArchetypeItem = ({ id }: { id: number }) => { | ||
const { archetype } = useFetchArchetypeById(id); | ||
|
||
if (!archetype) return null; | ||
|
||
return ( | ||
<Label color="grey" key={id}> | ||
{archetype.name} | ||
{archetype.review ? " (Reviewed)" : " (Not Reviewed)"} | ||
</Label> | ||
); | ||
}; |