Updates for baseview

This commit is contained in:
Elio Struyf
2021-08-06 13:38:17 +02:00
parent 1f94a87993
commit 0780842365
2 changed files with 13 additions and 3 deletions
+2 -3
View File
@@ -1,6 +1,7 @@
import * as React from 'react';
import { CommandToCode } from './CommandToCode';
import { Actions } from './components/Actions';
import { BaseView } from './components/BaseView';
import { Collapsible } from './components/Collapsible';
import { BugIcon } from './components/Icons/BugIcon';
import { FileIcon } from './components/Icons/FileIcon';
@@ -30,9 +31,7 @@ export const ViewPanel: React.FunctionComponent<IViewPanelProps> = (props: React
if (!metadata || Object.keys(metadata).length === 0) {
return (
<div className="frontmatter">
<p>Current view/file is not supported by FrontMatter.</p>
</div>
<BaseView />
);
}
+11
View File
@@ -0,0 +1,11 @@
import * as React from 'react';
export interface IBaseViewProps {}
export const BaseView: React.FunctionComponent<IBaseViewProps> = (props: React.PropsWithChildren<IBaseViewProps>) => {
return (
<div className="frontmatter">
</div>
);
};