mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 19:56:37 +00:00
check if modal children is aray
This commit is contained in:
parent
baf59c73ac
commit
7e805662d1
@ -142,7 +142,7 @@ export const Modal = styled(({ style, children, ...props }) => {
|
|||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<ScrollableFlex flexDirection="column" width="100%" height="90%">
|
<ScrollableFlex flexDirection="column" width="100%" height="90%">
|
||||||
{...children}
|
{children.length ? children.map((c: any) => <>{c}</>) : children}
|
||||||
</ScrollableFlex>
|
</ScrollableFlex>
|
||||||
</ModalBase>
|
</ModalBase>
|
||||||
);
|
);
|
||||||
|
@ -29,7 +29,7 @@ import { delay, getConfig } from '../shared/utils';
|
|||||||
import * as settings from './app/models/settings';
|
import * as settings from './app/models/settings';
|
||||||
import { logException } from './app/modules/analytics';
|
import { logException } from './app/modules/analytics';
|
||||||
import { buildWindowMenu } from './menu';
|
import { buildWindowMenu } from './menu';
|
||||||
import i18n from 'i18next';
|
import * as i18n from 'i18next';
|
||||||
|
|
||||||
const customProtocol = 'etcher';
|
const customProtocol = 'etcher';
|
||||||
const scheme = `${customProtocol}://`;
|
const scheme = `${customProtocol}://`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user