File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 "prop-types" : " 15.8.1" ,
2525 "react" : " 18.3.1" ,
2626 "react-dom" : " 18.3.1" ,
27- "sass" : " ^1.80.6" ,
2827 "zustand" : " ^5.0.1"
2928 },
3029 "devDependencies" : {
Original file line number Diff line number Diff line change 11import Index from "." ;
22
3- export default function Sem ( ) {
3+ function Sem ( ) {
44 return (
55 < >
66 < Index />
Original file line number Diff line number Diff line change @@ -6,12 +6,11 @@ import CssBaseline from "@mui/material/CssBaseline";
66import { CacheProvider } from "@emotion/react" ;
77import theme from "../src/theme" ;
88import createEmotionCache from "../src/createEmotionCache" ;
9- import dynamic from "next/dynamic" ;
109
1110// Client-side cache, shared for the whole session of the user in the browser.
1211const clientSideEmotionCache = createEmotionCache ( ) ;
1312
14- function MyApp ( props ) {
13+ export default function MyApp ( props ) {
1514 const {
1615 Component,
1716 emotionCache = clientSideEmotionCache ,
@@ -297,7 +296,3 @@ MyApp.propTypes = {
297296 emotionCache : PropTypes . object ,
298297 pageProps : PropTypes . object . isRequired ,
299298} ;
300-
301- export default dynamic ( ( ) => Promise . resolve ( MyApp ) , {
302- ssr : false ,
303- } ) ;
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ export default class MyDocument extends Document {
1414 return (
1515 < Html lang = "en" className = { roboto . className } >
1616 < Head >
17- < title key = "title" >
18- CSIT21 - SXC B.Sc. CSIT Batch 2021
19- </ title >
2017 < meta
2118 key = "og:image"
2219 property = "og:image"
Original file line number Diff line number Diff line change 77 CardContent ,
88 Container ,
99 Toolbar ,
10- Typography ,
1110} from "@mui/material" ;
1211import Grid from "@mui/material/Grid2" ;
12+ import dynamic from "next/dynamic" ;
1313
1414import Materials from "../components/Materials" ;
1515import Soon from "../components/Soon" ;
@@ -28,7 +28,7 @@ import Feedback from "../components/Feedback";
2828import Countdown from "../components/Countdown" ;
2929// import LeftSideCardMessage from "../components/LeftSideCardMessage";
3030
31- export default function Index ( ) {
31+ function Index ( ) {
3232 const theme = useTheme ( ) ;
3333 const isDesktop = useMediaQuery ( theme . breakpoints . up ( "sm" ) ) ;
3434
@@ -280,3 +280,7 @@ export default function Index() {
280280 </ >
281281 ) ;
282282}
283+
284+ export default dynamic ( ( ) => Promise . resolve ( Index ) , {
285+ ssr : false ,
286+ } ) ;
You can’t perform that action at this time.
0 commit comments