Skip to content

Commit

Permalink
Merge pull request #247 from suvarnakale/main
Browse files Browse the repository at this point in the history
Issue #PS-000 chore: sidebar changes
  • Loading branch information
itsvick authored Oct 11, 2024
2 parents 8fe1606 + 03e3025 commit f3f9fd1
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 60 deletions.
21 changes: 9 additions & 12 deletions src/pages/workspace/content/allContents/index.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import React from 'react'
import dynamic from 'next/dynamic';

import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import React from "react";
import dynamic from "next/dynamic";

// @ts-ignore
const Content = dynamic(() => import('editor/Content'), { ssr: false });
const Content = dynamic(() => import("editor/Content"), { ssr: false });

const content = () => {
return (
<Content />
)
}

export default content
return <Content />;
};

export default content;

export async function getStaticProps({ locale }: any) {
return {
props: {
noLayout: true,
...(await serverSideTranslations(locale, ["common"])),
},
};
}
}
21 changes: 9 additions & 12 deletions src/pages/workspace/content/create/index.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import React from 'react'
import dynamic from 'next/dynamic';

import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import React from "react";
import dynamic from "next/dynamic";

// @ts-ignore
const Create = dynamic(() => import('editor/Create'), { ssr: false });
const Create = dynamic(() => import("editor/Create"), { ssr: false });

const create = () => {
return (
<Create />
)
}

export default create
return <Create />;
};

export default create;

export async function getStaticProps({ locale }: any) {
return {
props: {
noLayout: true,
...(await serverSideTranslations(locale, ["common"])),
},
};
}
}
21 changes: 9 additions & 12 deletions src/pages/workspace/content/draft/index.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import React from 'react'
import dynamic from 'next/dynamic';

import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import React from "react";
import dynamic from "next/dynamic";

// @ts-ignore
const Draft = dynamic(() => import('editor/Draft'), { ssr: false });
const Draft = dynamic(() => import("editor/Draft"), { ssr: false });

const draft = () => {
return (
<Draft />
)
}

export default draft
return <Draft />;
};

export default draft;

export async function getStaticProps({ locale }: any) {
return {
props: {
noLayout: true,
...(await serverSideTranslations(locale, ["common"])),
},
};
}
}
21 changes: 9 additions & 12 deletions src/pages/workspace/content/publish/index.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import React from 'react'
import dynamic from 'next/dynamic';

import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import React from "react";
import dynamic from "next/dynamic";

// @ts-ignore
const Publish = dynamic(() => import('editor/Publish'), { ssr: false });
const Publish = dynamic(() => import("editor/Publish"), { ssr: false });

const publish = () => {
return (
<Publish />
)
}

export default publish
return <Publish />;
};

export default publish;

export async function getStaticProps({ locale }: any) {
return {
props: {
noLayout: true,
...(await serverSideTranslations(locale, ["common"])),
},
};
}
}
21 changes: 9 additions & 12 deletions src/pages/workspace/content/submitted/index.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import React from 'react'
import dynamic from 'next/dynamic';

import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import React from "react";
import dynamic from "next/dynamic";

// @ts-ignore
const Submitted = dynamic(() => import('editor/Submitted'), { ssr: false });
const Submitted = dynamic(() => import("editor/Submitted"), { ssr: false });

const submitted = () => {
return (
<Submitted />
)
}

export default submitted
return <Submitted />;
};

export default submitted;

export async function getStaticProps({ locale }: any) {
return {
props: {
noLayout: true,
...(await serverSideTranslations(locale, ["common"])),
},
};
}
}

0 comments on commit f3f9fd1

Please sign in to comment.