1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00
This commit is contained in:
MichaelAn
2018-11-06 18:03:41 +08:00
committed by Daniel Pan
parent df51b9f7f8
commit 97fd7d057c

View File

@@ -186,9 +186,9 @@ class DraftReview extends React.Component {
<div className="button-group">
<div className={'seafile-toggle-diff'}>
<label className="custom-switch" id="toggle-diff">
<input type="checkbox" checked={this.state.isShowDiff ? 'checked' : ''}
<input type="checkbox" checked={this.state.isShowDiff && 'checked'}
name="option" className="custom-switch-input"
onClick={this.onSwitchShowDiff}/>
onChange={this.onSwitchShowDiff}/>
<span className="custom-switch-indicator"></span>
</label>
<Tooltip placement="bottom" isOpen={this.state.showDiffTip}