show Content if currect file is no directory

This commit is contained in:
Maren Süwer
2018-10-25 11:27:31 +02:00
parent 6ca66c27d1
commit 20df283b08
7 changed files with 141 additions and 53 deletions

View File

@@ -23,14 +23,14 @@ class Content extends React.Component<Props, State> {
componentDidMount() {}
render() {
return null;
return "Hallo here is content";
}
}
export function getContentType(url: string) {
return apiClient
.head(url)
.then(response => response)
.then(response => response.headers.get("Content-Type"))
.catch(err => {
return null;
});