File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { getPagesUnderRoute } from " nextra/context" ;
22import Link from " next/link" ;
3- import { useState , useEffect } from ' react '
4- import { ChangelogComponent } from " ../components/changelog"
3+ import dynamic from " next/dynamic " ;
4+ import { ChangelogComponent } from " ../components/changelog" ;
55export function ChangelogHeader() {
66 return (
77 <div className = " max-w-screen-lg mx-auto pt-4 pb-8 mb-8 border-b border-gray-400 border-opacity-20 text-center" >
@@ -31,10 +31,7 @@ export function ChangelogIndex() {
3131 });
3232
3333 return pages .map ((page ) => {
34- const Mdx = dynamic (
35- () => import (` ./changelog/${page .name }.mdx ` ),
36- { ssr: false }
37- )
34+ const Mdx = dynamic (() => import (` ./changelog/${page .name }.mdx ` ));
3835 return (
3936 <ChangelogComponent
4037 key = { page .frontMatter .title }
@@ -48,7 +45,5 @@ export function ChangelogIndex() {
4845
4946}
5047
51- import dynamic from " next/dynamic" ;
52-
5348<ChangelogHeader />
5449<ChangelogIndex />
You can’t perform that action at this time.
0 commit comments