mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-20 05:12:54 +08:00
fix ads not showing
This commit is contained in:
parent
55456607b8
commit
df97b4950b
@ -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();
|
||||
|
@ -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 (
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user