fix(ui) - checkbox click

This commit is contained in:
Shekar Siri 2022-06-29 13:38:43 +02:00
parent 99ee5d5cb1
commit f0ea5fd63d
3 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ function SaveSearchModal(props: Props) {
}
}
const onChangeOption = (e, { checked, name }) => props.edit({ [ name ]: checked })
const onChangeOption = ({ target: { checked, name }}: any) => props.edit({ [ name ]: checked })
return (
@ -94,7 +94,7 @@ function SaveSearchModal(props: Props) {
onClick={ onChangeOption }
/>
<div
className="flex items-center cursor-pointer"
className="flex items-center cursor-pointer select-none"
onClick={ () => props.edit({ 'isPublic' : !savedSearch.isPublic }) }
>
<Icon name="user-friends" size="16" />

View file

@ -14,7 +14,7 @@ export default (props: Props) => {
type="checkbox"
{ ...rest }
/>
{label && <span className="ml-2 select-none">{label}</span>}
{label && <span className="ml-2 select-none mb-0">{label}</span>}
</label>
)
};

View file

@ -1,4 +1,4 @@
.form-field label {
.form-field > label {
font-weight: 500;
margin-bottom: 5px;
color: '#888';