mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
apply prettier, removed flow related config and added tsconfig
This commit is contained in:
@@ -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}`} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user