Installed TS and updated linter

This commit is contained in:
Alejandro Celaya
2020-08-22 08:06:41 +02:00
parent 8be17cce8a
commit 343a93b984
7 changed files with 1983 additions and 338 deletions

View File

@@ -10,7 +10,7 @@ const propTypes = {
// FIXME Replace with typescript: (ServersImporter)
const ImportServersBtn = ({ importServersFromFile }) => {
const ImportServersBtnComp = ({ createServers, fileRef, onImport = () => {} }) => {
const ImportServersBtnComp = ({ createServers, fileRef, onImport = () => '' }) => {
const ref = fileRef || useRef();
const onChange = ({ target }) =>
importServersFromFile(target.files[0])