1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

optimized code style

This commit is contained in:
shanshuirenjia
2018-12-11 13:44:09 +08:00
parent a25be1ce4c
commit 1a3bd048d8
4 changed files with 21 additions and 29 deletions

View File

@@ -17,9 +17,9 @@ class WikiSelectDialog extends React.Component {
this.state = {
repos: [],
isExist: true,
name: "",
repoID: "",
}
name: '',
repoID: '',
};
}
componentDidMount() {
@@ -27,7 +27,7 @@ class WikiSelectDialog extends React.Component {
this.setState({
repos: res.data.repos,
});
})
});
}
onChange = (repo) => {
@@ -66,7 +66,7 @@ class WikiSelectDialog extends React.Component {
return (
<tr key={index}>
<td className="select"><input type="radio" className="vam" name="repo" value={repo.repo_id} onChange={this.onChange.bind(this, repo)} /></td>
<td><img src={siteRoot + 'media/img/lib/48/lib.png'} width="24" /></td>
<td><img src={siteRoot + 'media/img/lib/48/lib.png'} width="24" alt={gettext('icon')} /></td>
<td>{gettext(repo.repo_name)}</td>
<td>{moment(repo.last_modified).fromNow()}</td>
</tr>