Files
kopia/htmlui/src/SetupFilesystem.js
Jarek Kowalski f605f52624 Upgraded bootstrap to v5 and react-bootstrap accordingly (#1192)
* htmlui: upgraded bootstrap to v5.0.2 and react-bootstrap to v5

* htmlui: fixed test warnings

* app: removed unused dependencies on bootstrap and react-bootstrap

* more style fixes
2021-07-10 22:09:23 -07:00

28 lines
712 B
JavaScript

import React, { Component } from 'react';
import Row from 'react-bootstrap-v5/lib/Row';
import { handleChange, RequiredField, validateRequiredFields } from './forms';
export class SetupFilesystem extends Component {
constructor(props) {
super();
this.state = {
...props.initial
};
this.handleChange = handleChange.bind(this);
}
validate() {
return validateRequiredFields(this, ["path"])
}
render() {
return <>
<Row>
{RequiredField(this, "Directory Path", "path", { autoFocus: true, placeholder: "enter path to a directory where to store repository files" })}
</Row>
</>;
}
}