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:
@@ -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} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user