fix(dashboard): Profile styling (#7481)
This commit is contained in:
@@ -3,8 +3,8 @@ import { Language } from "./types"
|
|||||||
|
|
||||||
export const languages: Language[] = [
|
export const languages: Language[] = [
|
||||||
{
|
{
|
||||||
code: "en-US",
|
code: "en",
|
||||||
display_name: "English (US)",
|
display_name: "English",
|
||||||
ltr: true,
|
ltr: true,
|
||||||
date_locale: enUS,
|
date_locale: enUS,
|
||||||
},
|
},
|
||||||
|
|||||||
+17
-8
@@ -1,7 +1,8 @@
|
|||||||
|
import { PencilSquare } from "@medusajs/icons"
|
||||||
import { UserDTO } from "@medusajs/types"
|
import { UserDTO } from "@medusajs/types"
|
||||||
import { Button, Container, Heading, StatusBadge, Text } from "@medusajs/ui"
|
import { Container, Heading, StatusBadge, Text } from "@medusajs/ui"
|
||||||
import { useTranslation } from "react-i18next"
|
import { useTranslation } from "react-i18next"
|
||||||
import { Link } from "react-router-dom"
|
import { ActionMenu } from "../../../../../components/common/action-menu"
|
||||||
import { languages } from "../../../../../i18n/languages"
|
import { languages } from "../../../../../i18n/languages"
|
||||||
|
|
||||||
type ProfileGeneralSectionProps = {
|
type ProfileGeneralSectionProps = {
|
||||||
@@ -22,13 +23,21 @@ export const ProfileGeneralSection = ({ user }: ProfileGeneralSectionProps) => {
|
|||||||
{t("profile.manageYourProfileDetails")}
|
{t("profile.manageYourProfileDetails")}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
<Link to="/settings/profile/edit">
|
<ActionMenu
|
||||||
<Button size="small" variant="secondary">
|
groups={[
|
||||||
{t("actions.edit")}
|
{
|
||||||
</Button>
|
actions: [
|
||||||
</Link>
|
{
|
||||||
|
label: t("actions.edit"),
|
||||||
|
to: "edit",
|
||||||
|
icon: <PencilSquare />,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-2 items-center px-6 py-4">
|
<div className="text-ui-fg-subtle grid grid-cols-2 items-center 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>
|
||||||
|
|||||||
Reference in New Issue
Block a user