mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 03:47:09 +00:00
[eslint] updated eslintrc and improved the code (#4702)
This commit is contained in:
@@ -61,7 +61,7 @@ class CreateForder extends React.Component {
|
||||
let path = this.state.parentPath + newName;
|
||||
this.props.onAddFolder(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
handleKeyPress = (e) => {
|
||||
if (e.key === 'Enter') {
|
||||
@@ -87,11 +87,11 @@ class CreateForder extends React.Component {
|
||||
<Form>
|
||||
<FormGroup>
|
||||
<Label for="folderName">{gettext('Name')}</Label>
|
||||
<Input
|
||||
id="folderName"
|
||||
value={this.state.childName}
|
||||
innerRef={input => {this.newInput = input;}}
|
||||
onKeyPress={this.handleKeyPress}
|
||||
<Input
|
||||
id="folderName"
|
||||
value={this.state.childName}
|
||||
innerRef={input => {this.newInput = input;}}
|
||||
onKeyPress={this.handleKeyPress}
|
||||
onChange={this.handleChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
Reference in New Issue
Block a user