Skip to content

Commit

Permalink
Fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrazier committed Jul 15, 2023
1 parent c929713 commit b416e13
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 17 deletions.
1 change: 1 addition & 0 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
const config = {
output: 'standalone',
poweredByHeader: false,
compress: false,
};

module.exports = config;
44 changes: 27 additions & 17 deletions frontend/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import Head from 'next/head';
import { StyledEngineProvider } from '@mui/material/styles';
import { ThemeProvider, CssBaseline, createTheme } from '@mui/material';
import Header from '../components/Header';
import Footer from '../components/Footer';
Expand Down Expand Up @@ -29,6 +30,13 @@ const darkTheme = createTheme({
fontSize: '1.75rem',
},
},
components: {
MuiLink: {
defaultProps: {
underline: 'hover',
},
},
},
});

// @ts-ignore
Expand All @@ -38,23 +46,25 @@ const App = ({ Component, pageProps }) => {
<Head>
<title>PayMate - Send money instantly through a link</title>
</Head>
<ThemeProvider theme={darkTheme}>
<CssBaseline />
<Header />
<main
style={{
flex: 1,
display: 'flex',
flexDirection: 'column',
margin: 15,
width: '100%',
alignItems: 'center',
}}
>
<Component {...pageProps} />
</main>
<Footer />
</ThemeProvider>
<StyledEngineProvider injectFirst>
<ThemeProvider theme={darkTheme}>
<CssBaseline />
<Header />
<main
style={{
flex: 1,
display: 'flex',
flexDirection: 'column',
margin: 15,
width: '100%',
alignItems: 'center',
}}
>
<Component {...pageProps} />
</main>
<Footer />
</ThemeProvider>
</StyledEngineProvider>
</div>
);
};
Expand Down

0 comments on commit b416e13

Please sign in to comment.