Fix spacing of custom checkbox value settings input

[MAILPOET-2463]
This commit is contained in:
Rostislav Wolny
2020-01-16 14:10:54 +01:00
committed by Pavel Dohnal
parent 03135ffc28
commit 2a2d5da12f

View File

@@ -1,5 +1,6 @@
import React, { useEffect, useMemo, useState } from 'react'; import React, { useEffect, useMemo, useState } from 'react';
import { import {
BaseControl,
Button, Button,
ToggleControl, ToggleControl,
} from '@wordpress/components'; } from '@wordpress/components';
@@ -65,7 +66,7 @@ const CustomFieldSettings = ({
checked={localMandatory} checked={localMandatory}
onChange={setLocalMandatory} onChange={setLocalMandatory}
/> />
<div> <BaseControl>
<input <input
type="checkbox" type="checkbox"
checked={localIsChecked} checked={localIsChecked}
@@ -76,7 +77,7 @@ const CustomFieldSettings = ({
type="text" type="text"
onChange={(event) => setLocalCheckboxLabel(event.target.value)} onChange={(event) => setLocalCheckboxLabel(event.target.value)}
/> />
</div> </BaseControl>
</div> </div>
); );
}; };