apply prettier, removed flow related config and added tsconfig

This commit is contained in:
Sebastian Sdorra
2019-10-20 18:02:52 +02:00
parent 0e017dcadd
commit 490418d06e
231 changed files with 5771 additions and 30386 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { File } from '@scm-manager/ui-types';
import React from "react";
import { File } from "@scm-manager/ui-types";
type Props = {
file: File;
@@ -8,11 +8,11 @@ type Props = {
class FileIcon extends React.Component<Props> {
render() {
const { file } = this.props;
let icon = 'file';
let icon = "file";
if (file.subRepository) {
icon = 'folder-plus';
icon = "folder-plus";
} else if (file.directory) {
icon = 'folder';
icon = "folder";
}
return <i className={`fa fa-${icon}`} />;
}