-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #247 from suvarnakale/main
Issue #PS-000 chore: sidebar changes
- Loading branch information
Showing
5 changed files
with
45 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"])), | ||
}, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"])), | ||
}, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"])), | ||
}, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"])), | ||
}, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"])), | ||
}, | ||
}; | ||
} | ||
} |