Skip to content

Commit

Permalink
fix enabled button bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wodka committed Jun 20, 2020
1 parent 6d733f2 commit 561a8d6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions components/form/admin/hooks.tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,16 @@ export const HooksTab: React.FC<Props> = (props) => {
<Form.Item wrapperCol={{ span: 24 }}>
<Card
title={
<Form.Item
name={[hook.name, 'enabled']}
valuePropName={'checked'}
noStyle
>
<Checkbox /> {t('form:hooks.enabled')}
</Form.Item>
<div>
<Form.Item
name={[hook.name, 'enabled']}
valuePropName={'checked'}
noStyle
>
<Checkbox />
</Form.Item>
&nbsp;{t('form:hooks.enabled')}
</div>
}
type={'inner'}
extra={
Expand Down

0 comments on commit 561a8d6

Please sign in to comment.