mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 05:25:44 +01:00
show Content if currect file is no directory
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user