Fix modals with horizontal form components.

Fix invite / friends menu having sidebars.
This commit is contained in:
Paul
2021-07-02 20:57:48 +01:00
parent d1fd371b70
commit c7bbbcdb8b
4 changed files with 18 additions and 9 deletions

View File

@@ -54,13 +54,15 @@ export function InputModal({
]}
onClose={onClose}
>
{ field ? <Overline error={error} block>
{field}
</Overline> : (error && <Overline error={error} type="error" block />) }
<InputBox
value={value}
onChange={e => setValue(e.currentTarget.value)}
/>
<form>
{ field ? <Overline error={error} block>
{field}
</Overline> : (error && <Overline error={error} type="error" block />) }
<InputBox
value={value}
onChange={e => setValue(e.currentTarget.value)}
/>
</form>
</Modal>
);
}