mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 13:11:23 +00:00
pulled changes from develop -- converted ManagedUIContext to a function (non-arrow) with explicit React.ReactNode props -- url to article explaining benefits of this revised configuration included in a comment (compone
nts/context, line 185)
This commit is contained in:
parent
81d264a57d
commit
748f05344c
@ -182,7 +182,7 @@ interface ManagedUIContextProps {
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
// please see https://medium.com/variant-as/a-better-way-to-type-react-components-9a6460a1d4b7
|
||||
// please see for benefits of this configuretaion https://medium.com/variant-as/a-better-way-to-type-react-components-9a6460a1d4b7
|
||||
export function ManagedUIContext(props: ManagedUIContextProps) {
|
||||
const { children } = props
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user