feat: new lock screen and challenge modal design (#957)

This commit is contained in:
Aman Harwara
2022-04-12 00:05:08 +05:30
committed by GitHub
parent 3a2ff2f440
commit c16f23a75f
12 changed files with 434 additions and 385 deletions

View File

@@ -5,6 +5,7 @@ import {
VNode,
RefCallback,
ComponentChild,
toChildArray,
} from 'preact';
import { useEffect, useRef } from 'preact/hooks';
import { JSXInternal } from 'preact/src/jsx';
@@ -117,7 +118,7 @@ export const Menu: FunctionComponent<MenuProps> = ({
style={style}
aria-label={a11yLabel}
>
{Array.isArray(children) ? children.map(mapMenuItems) : null}
{toChildArray(children).map(mapMenuItems)}
</menu>
);
};