fix(dashboard): Fix the color of general fields (#7519)
This commit is contained in:
1 parent
c46c643fda
commit
4483b7980d
1 file changed
+11
-10
+11
-10
@@ -2,8 +2,8 @@ import { PencilSquare } from "@medusajs/icons"
|
|||||||
import { Badge, Container, Heading, Text } from "@medusajs/ui"
|
import { Badge, Container, Heading, Text } from "@medusajs/ui"
|
||||||
import { useTranslation } from "react-i18next"
|
import { useTranslation } from "react-i18next"
|
||||||
import { ActionMenu } from "../../../../../components/common/action-menu"
|
import { ActionMenu } from "../../../../../components/common/action-menu"
|
||||||
import { ExtendedStoreDTO } from "../../../../../types/api-responses"
|
|
||||||
import { useRegion } from "../../../../../hooks/api/regions"
|
import { useRegion } from "../../../../../hooks/api/regions"
|
||||||
|
import { ExtendedStoreDTO } from "../../../../../types/api-responses"
|
||||||
|
|
||||||
type StoreGeneralSectionProps = {
|
type StoreGeneralSectionProps = {
|
||||||
store: ExtendedStoreDTO
|
store: ExtendedStoreDTO
|
||||||
@@ -39,7 +39,7 @@ export const StoreGeneralSection = ({ store }: StoreGeneralSectionProps) => {
|
|||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-2 px-6 py-4">
|
<div className="text-ui-fg-subtle grid grid-cols-2 px-6 py-4">
|
||||||
<Text size="small" leading="compact" weight="plus">
|
<Text size="small" leading="compact" weight="plus">
|
||||||
{t("fields.name")}
|
{t("fields.name")}
|
||||||
</Text>
|
</Text>
|
||||||
@@ -47,11 +47,11 @@ export const StoreGeneralSection = ({ store }: StoreGeneralSectionProps) => {
|
|||||||
{store.name}
|
{store.name}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
{store.default_currency && (
|
<div className="text-ui-fg-subtle grid grid-cols-2 px-6 py-4">
|
||||||
<div className="grid grid-cols-2 px-6 py-4">
|
|
||||||
<Text size="small" leading="compact" weight="plus">
|
<Text size="small" leading="compact" weight="plus">
|
||||||
{t("store.defaultCurrency")}
|
{t("store.defaultCurrency")}
|
||||||
</Text>
|
</Text>
|
||||||
|
{store.default_currency ? (
|
||||||
<div className="flex items-center gap-x-2">
|
<div className="flex items-center gap-x-2">
|
||||||
<Badge size="2xsmall">
|
<Badge size="2xsmall">
|
||||||
{store.default_currency.code.toUpperCase()}
|
{store.default_currency.code.toUpperCase()}
|
||||||
@@ -60,21 +60,22 @@ export const StoreGeneralSection = ({ store }: StoreGeneralSectionProps) => {
|
|||||||
{store.default_currency.name}
|
{store.default_currency.name}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
) : (
|
||||||
|
<Text size="small" leading="compact">
|
||||||
|
-
|
||||||
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
{region && (
|
<div className="text-ui-fg-subtle grid grid-cols-2 px-6 py-4">
|
||||||
<div className="grid grid-cols-2 px-6 py-4">
|
|
||||||
<Text size="small" leading="compact" weight="plus">
|
<Text size="small" leading="compact" weight="plus">
|
||||||
{t("store.defaultRegion")}
|
{t("store.defaultRegion")}
|
||||||
</Text>
|
</Text>
|
||||||
<div className="flex items-center gap-x-2">
|
<div className="flex items-center gap-x-2">
|
||||||
<Text size="small" leading="compact">
|
<Text size="small" leading="compact">
|
||||||
{region.name}
|
{region?.name || "-"}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user