1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 19:01:42 +00:00

modify code style

This commit is contained in:
shanshuirenjia
2018-12-07 10:42:47 +08:00
parent 0efff439e9
commit ed514d70cc
2 changed files with 8 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, Input, CustomInput, ModalBody, ModalFooter, Form, FormGroup, Label } from 'reactstrap'; import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label } from 'reactstrap';
import { gettext } from '../../utils/constants'; import { gettext } from '../../utils/constants';
const propTypes = { const propTypes = {
@@ -112,17 +112,17 @@ class CreateRepoDialog extends React.Component {
let repo = { let repo = {
id: null, id: null,
name: repoName, name: repoName,
desc: "", desc: '',
encrypted: encrypt, encrypted: encrypt,
passwd: password, passwd: password,
passwd1: password, passwd1: password,
passwd2: password, passwd2: password,
mtime: 0, mtime: 0,
mtime_relative: "", mtime_relative: '',
owner: "-", owner: '-',
owner_nickname: "-", owner_nickname: '-',
permission: "rw", permission: 'rw',
storage_name: "-", storage_name: '-',
}; };
return repo; return repo;
} }

View File

@@ -395,7 +395,7 @@ class MyLibraries extends Component {
onCreateRepo = (repo) => { onCreateRepo = (repo) => {
seafileAPI.createMineRepo(repo).then((res) => { seafileAPI.createMineRepo(repo).then((res) => {
//todo update repoList
}); });
} }