Refactor code style for consistency and readability
- Updated import statements to use double quotes instead of single quotes across multiple files. - Reformatted JSX return statements for better alignment and readability. - Added missing newlines at the end of files where necessary. - Adjusted component structure for improved clarity in the Landing, Blog, BestPractices, and Projects pages. - Enhanced error boundary component for better error handling. - Updated theme overrides for Material-UI components to maintain consistent styling.
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
import React, { useContext } from 'react';
|
||||
import React, { useContext } from "react";
|
||||
|
||||
import { ThemeProvider } from '@mui/material/styles';
|
||||
import { ThemeProvider } from "@mui/material/styles";
|
||||
|
||||
import { ColorModeContext } from 'App';
|
||||
import { LandingWhite } from 'themes/Theme';
|
||||
import FullScreenContainer from 'layouts/common/fullScreenContainer';
|
||||
import { ColorModeContext } from "App";
|
||||
import { LandingWhite } from "themes/Theme";
|
||||
import FullScreenContainer from "layouts/common/fullScreenContainer";
|
||||
|
||||
import BackToTop from '../common/backToTop';
|
||||
import Header from './components/header';
|
||||
import BackToTop from "../common/backToTop";
|
||||
import Header from "./components/header";
|
||||
|
||||
const LandingLayout = (props) => {
|
||||
const { children } = props;
|
||||
const { children } = props;
|
||||
|
||||
const colorMode = useContext(ColorModeContext);
|
||||
const colorMode = useContext(ColorModeContext);
|
||||
|
||||
return (
|
||||
<ColorModeContext.Provider value={colorMode}>
|
||||
<ThemeProvider theme={LandingWhite}>
|
||||
<div id='back-to-top-anchor' />
|
||||
<Header />
|
||||
<FullScreenContainer>
|
||||
{children}
|
||||
<BackToTop />
|
||||
</FullScreenContainer>
|
||||
</ThemeProvider>
|
||||
</ColorModeContext.Provider>
|
||||
);
|
||||
return (
|
||||
<ColorModeContext.Provider value={colorMode}>
|
||||
<ThemeProvider theme={LandingWhite}>
|
||||
<div id="back-to-top-anchor" />
|
||||
<Header />
|
||||
<FullScreenContainer>
|
||||
{children}
|
||||
<BackToTop />
|
||||
</FullScreenContainer>
|
||||
</ThemeProvider>
|
||||
</ColorModeContext.Provider>
|
||||
);
|
||||
};
|
||||
|
||||
export default LandingLayout;
|
||||
|
||||
Reference in New Issue
Block a user