fix(dashboard): Align product organization badges with design (#8975)

**What**
- Aligns implementation with design, all badges in the Organization card should be grey.
This commit is contained in:
Kasper Fabricius Kristensen authored and GitHub committed 2024-09-04 06:49:49 +00:00
1 parent 91d0bb0260
commit 419cf1b7d7
1 file changed
+3 -9
@@ -1,10 +1,10 @@
import { PencilSquare } from "@medusajs/icons" import { PencilSquare } from "@medusajs/icons"
import { HttpTypes } from "@medusajs/types"
import { Badge, Container, Heading } from "@medusajs/ui" import { Badge, Container, Heading } from "@medusajs/ui"
import { useTranslation } from "react-i18next" import { useTranslation } from "react-i18next"
import { Link } from "react-router-dom" import { Link } from "react-router-dom"
import { ActionMenu } from "../../../../../components/common/action-menu" import { ActionMenu } from "../../../../../components/common/action-menu"
import { SectionRow } from "../../../../../components/common/section" import { SectionRow } from "../../../../../components/common/section"
import { HttpTypes } from "@medusajs/types"
type ProductOrganizationSectionProps = { type ProductOrganizationSectionProps = {
product: HttpTypes.AdminProduct product: HttpTypes.AdminProduct
@@ -63,7 +63,7 @@ export const ProductOrganizationSection = ({
title={t("fields.collection")} title={t("fields.collection")}
value={ value={
product.collection ? ( product.collection ? (
<Badge size="2xsmall" color="blue" className="w-fit" asChild> <Badge size="2xsmall" className="w-fit" asChild>
<Link to={`/collections/${product.collection.id}`}> <Link to={`/collections/${product.collection.id}`}>
{product.collection.title} {product.collection.title}
</Link> </Link>
@@ -77,13 +77,7 @@ export const ProductOrganizationSection = ({
value={ value={
product.categories?.length product.categories?.length
? product.categories.map((pcat) => ( ? product.categories.map((pcat) => (
<Badge <Badge key={pcat.id} className="w-fit" size="2xsmall" asChild>
key={pcat.id}
className="w-fit"
color="purple"
size="2xsmall"
asChild
>
<Link to={`/categories/${pcat.id}`}>{pcat.name}</Link> <Link to={`/categories/${pcat.id}`}>{pcat.name}</Link>
</Badge> </Badge>
)) ))