mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-18 06:57:52 +00:00
refactor code
This commit is contained in:
parent
5c26a4e1c5
commit
3247f87727
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Link } from '@reach/router';
|
import { Link } from '@reach/router';
|
||||||
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label, Col, FormText } from 'reactstrap';
|
import { Button, Modal, Input, ModalBody, Form, FormGroup, Label } from 'reactstrap';
|
||||||
import { gettext, siteRoot } from '../../utils/constants';
|
import { gettext, siteRoot } from '../../utils/constants';
|
||||||
import { seafileAPI } from '../../utils/seafile-api';
|
import { seafileAPI } from '../../utils/seafile-api';
|
||||||
|
|
||||||
@ -52,10 +52,9 @@ class LibDecryptDialog extends React.Component {
|
|||||||
<FormGroup>
|
<FormGroup>
|
||||||
<Input type="password" name="password" placeholder={gettext('Password')} onChange={this.handleChange}/>
|
<Input type="password" name="password" placeholder={gettext('Password')} onChange={this.handleChange}/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<br />
|
|
||||||
<Button onClick={this.handleSubmit}>{gettext('Submit')}</Button>
|
<Button onClick={this.handleSubmit}>{gettext('Submit')}</Button>
|
||||||
<br />
|
<br />
|
||||||
<p className="tip">*{gettext('The password will be kept in the server for only 1 hour.')}</p>
|
<p className="tip">{'* '}{gettext('The password will be kept in the server for only 1 hour.')}</p>
|
||||||
</Form>
|
</Form>
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
Loading…
Reference in New Issue
Block a user