diff --git a/frontend/packages/core/src/quick-links.tsx b/frontend/packages/core/src/quick-links.tsx
index 7082a39c3e..0eda3b5ff6 100644
--- a/frontend/packages/core/src/quick-links.tsx
+++ b/frontend/packages/core/src/quick-links.tsx
@@ -41,6 +41,18 @@ const StyledPopperItem = styled(PopperItem)({
},
});
+const StyledBadge = styled(Badge)({
+ ".MuiBadge-anchorOriginTopRightCircular": {
+ top: "23%",
+ right: "23%",
+ },
+ ".MuiBadge-dot": {
+ height: "10px",
+ minWidth: "10px",
+ borderRadius: "50%",
+ },
+});
+
interface LinkGroupProps {
linkGroupName: string;
linkGroupImage: string;
@@ -77,6 +89,18 @@ const QuickLinkContainer = ({ keyProp, name, children }: QuickLinkContainerProps
);
};
+const QuickLinkWrapper = ({ linkGroup, children }) => (
+
+ {children}
+
+);
+
// If only a single link, then no popper is necessary
const QuickLink = ({ link, linkGroupName, linkGroupImage }: QuickLinkProps) =>
link?.url ? (
@@ -159,36 +183,23 @@ const SlicedLinkGroup = ({ slicedLinkGroups }: SlicedLinkGroupProps) => {
return (
<>
{(slicedLinkGroups || []).map(linkGroup => {
- if (linkGroup.links?.length === 1) {
- return (
-
+ return (
+
+ {linkGroup.links?.length === 1 ? (
-
- );
- }
- return (
-
-
-
+ ) : (
+
+ )}
+
);
})}
>
diff --git a/frontend/packages/core/src/stories/quick-links.stories.tsx b/frontend/packages/core/src/stories/quick-links.stories.tsx
index 5451ae9ebc..93ab46bcc1 100644
--- a/frontend/packages/core/src/stories/quick-links.stories.tsx
+++ b/frontend/packages/core/src/stories/quick-links.stories.tsx
@@ -127,14 +127,14 @@ const withBadges = [
{
...linkGroups[0],
badge: {
- color: "error",
+ color: "warning",
content: "1",
},
},
{
...linkGroups[1],
badge: {
- color: "success",
+ color: "error",
content: " ",
},
},