fix ads not showing

This commit is contained in:
AykutSarac 2022-06-14 13:51:09 +03:00
parent 55456607b8
commit df97b4950b
3 changed files with 9 additions and 7 deletions

View File

@ -1,9 +1,13 @@
import { Allotment } from "allotment";
import React from "react";
import { useConfig } from "src/hocs/config";
import { LiveEditor } from "src/containers/LiveEditor";
import { JsonEditor } from "src/containers/JsonEditor";
import { StyledEditor } from "./styles";
import dynamic from "next/dynamic";
const LiveEditor = dynamic(() => import("src/containers/LiveEditor"), {
ssr: false,
});
const Panes: React.FC = () => {
const { settings } = useConfig();

View File

@ -2,11 +2,7 @@ import React from "react";
import { Sidebar } from "src/components/Sidebar";
import { Incompatible } from "src/containers/Incompatible";
import * as Styles from "src/containers/Editor/styles";
import dynamic from "next/dynamic";
const Panes = dynamic(() => import("./Panes"), {
ssr: false,
});
import Panes from "./Panes";
const Editor: React.FC = () => {
return (

View File

@ -33,7 +33,7 @@ const wheelOptions = {
step: 0.05,
};
export const LiveEditor: React.FC = () => {
const LiveEditor: React.FC = () => {
const { dispatch } = useConfig();
const onInit = (ref: ReactZoomPanPinchRef) => {
@ -68,3 +68,5 @@ export const LiveEditor: React.FC = () => {
</StyledLiveEditor>
);
};
export default LiveEditor;