mirror of
https://github.com/kopia/kopia.git
synced 2026-03-16 21:28:15 -04:00
* 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
28 lines
712 B
JavaScript
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>
|
|
</>;
|
|
}
|
|
}
|