Skip to content

Commit

Permalink
feat: SettingCheckBox checkbox이벤트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
tbvjaos510 committed Oct 24, 2019
1 parent ad5b059 commit 23186c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/popup/components/Setting/Inputs/SettingCheckBox.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from "react";
import OptionStore from "../../../../store/option";
import { inject, observer } from "mobx-react";
import { inject, observer } from 'mobx-react';
import * as React from 'react';

import OptionStore from '../../../../store/option';

export interface ISettingCheckBoxProps {
tooltip?: string;
Expand All @@ -26,6 +27,7 @@ export default class SettingCheckBox extends React.Component<ISettingCheckBoxPro
checked={option[key]}
onChange={event => {
option[key] = event.target.checked;
ga("send", "event", "popup", "SettingCheckBoxClick", `${text}/${event.target.checked}`);
onChange && onChange(event);
}}
/>
Expand Down

0 comments on commit 23186c4

Please sign in to comment.