feat(admin, js-sdk, types): update order forms (#10418)

* feat: edit shipping, billing and email forms

* feat: timeline history, update change model, update tests

* fix: address comments

* fix: invalidation, translation schema, update label

* fix: old/new
This commit is contained in:
Frane Polić
2024-12-04 14:56:40 +01:00
committed by GitHub
parent a5263083fa
commit 340769595a
27 changed files with 1202 additions and 63 deletions
@@ -1,5 +1,6 @@
import { Avatar, Text } from "@medusajs/ui"
import { Link } from "react-router-dom"
import { useUser } from "../../../hooks/api/users"
type UserLinkProps = {
id: string
@@ -32,3 +33,13 @@ export const UserLink = ({
</Link>
)
}
export const By = ({ id }: { id: string }) => {
const { user } = useUser(id) // todo: extend to support customers
if (!user) {
return null
}
return <UserLink {...user} />
}