feat: style editor for blog
This commit is contained in:
@@ -9,6 +9,7 @@ import { LinkedMediaPanel } from '../LinkedMediaPanel';
|
||||
import { ErrorModal } from '../ErrorModal';
|
||||
import { ConfirmDeleteModal } from '../ConfirmDeleteModal';
|
||||
import { SettingsView } from '../SettingsView';
|
||||
import { StyleView } from '../StyleView/StyleView';
|
||||
import { TagsView } from '../TagsView';
|
||||
import { TagInput } from '../TagInput';
|
||||
import { ChatPanel } from '../ChatPanel';
|
||||
@@ -1697,6 +1698,7 @@ export const Editor: React.FC = () => {
|
||||
const showPost = activeTab?.type === 'post';
|
||||
const showMedia = activeTab?.type === 'media';
|
||||
const showSettings = activeTab?.type === 'settings';
|
||||
const showStyle = activeTab?.type === 'style';
|
||||
const showTags = activeTab?.type === 'tags';
|
||||
const showChat = activeTab?.type === 'chat';
|
||||
const showImport = activeTab?.type === 'import';
|
||||
@@ -1765,6 +1767,16 @@ export const Editor: React.FC = () => {
|
||||
);
|
||||
}
|
||||
|
||||
if (showStyle) {
|
||||
return (
|
||||
<div className="editor">
|
||||
<StyleView />
|
||||
{renderErrorModal()}
|
||||
{renderConfirmDeleteModal()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// Show tags if tags tab is active
|
||||
if (showTags) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user