fix(dashboard): Prevent language ptBR from breaking dashboard (#10422)
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ import { useForm } from "react-hook-form"
|
||||
import { useTranslation } from "react-i18next"
|
||||
import * as zod from "zod"
|
||||
|
||||
import { UserDTO } from "@medusajs/types"
|
||||
import { HttpTypes } from "@medusajs/types"
|
||||
import { Form } from "../../../../../components/common/form"
|
||||
import { RouteDrawer, useRouteModal } from "../../../../../components/modals"
|
||||
import { KeyboundForm } from "../../../../../components/utilities/keybound-form"
|
||||
@@ -12,7 +12,7 @@ import { useUpdateUser } from "../../../../../hooks/api/users"
|
||||
import { languages } from "../../../../../i18n/languages"
|
||||
|
||||
type EditProfileProps = {
|
||||
user: Partial<Omit<UserDTO, "password_hash">>
|
||||
user: HttpTypes.AdminUser
|
||||
// usageInsights: boolean
|
||||
}
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ export const ProfileEdit = () => {
|
||||
return (
|
||||
<RouteDrawer>
|
||||
<RouteDrawer.Header className="capitalize">
|
||||
<Heading>{t("profile.edit.header")}</Heading>
|
||||
<RouteDrawer.Title asChild>
|
||||
<Heading>{t("profile.edit.header")}</Heading>
|
||||
</RouteDrawer.Title>
|
||||
</RouteDrawer.Header>
|
||||
{!isLoading && user && (
|
||||
<EditProfileForm user={user} usageInsights={false} />
|
||||
)}
|
||||
{!isLoading && user && <EditProfileForm user={user} />}
|
||||
</RouteDrawer>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user