fix dev emotion crasher in wardrobe page

This seemed to only show up in dev? But right, I guess it's not happy about passing stuff from ClassNames into a Popover Portal. Move it inside, fixed!
This commit is contained in:
Emi Matchu 2021-01-05 05:51:54 +00:00
parent f36d6831d0
commit 6749d19f9e

View file

@ -107,16 +107,16 @@ function PosePicker({
};
return (
<ClassNames>
{({ css, cx }) => (
<Popover
placement="bottom-end"
returnFocusOnClose
onOpen={onLockFocus}
onClose={onUnlockFocus}
initialFocusRef={initialFocusRef}
>
{({ isOpen }) => (
<Popover
placement="bottom-end"
returnFocusOnClose
onOpen={onLockFocus}
onClose={onUnlockFocus}
initialFocusRef={initialFocusRef}
>
{({ isOpen }) => (
<ClassNames>
{({ css, cx }) => (
<>
<PopoverTrigger>
<Button
@ -199,9 +199,9 @@ function PosePicker({
</Portal>
</>
)}
</Popover>
</ClassNames>
)}
</ClassNames>
</Popover>
);
}