Skip to content

Commit

Permalink
feat: adds the app layout to app
Browse files Browse the repository at this point in the history
Adds the app layout to the app

closes #148
  • Loading branch information
anguspiv committed Nov 15, 2022
1 parent 946b4df commit 2b844be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="true" />
<link
href="https://fonts.googleapis.com/css2?&family=Fira+Code:wght@300..700&family=Open+Sans:wght@300..700&display=optional"
rel="stylesheet" />
2 changes: 1 addition & 1 deletion src/components/atoms/Avatar/Avatar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function Avatar({ className, width, height, ...props }) {

Avatar.propTypes = {
...Image.propTypes,
src: PropTypes.oneOfType([PropTypes.string, PropTypes.shape]).isRequired,
src: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({})]).isRequired,
className: PropTypes.string,
};

Expand Down
6 changes: 5 additions & 1 deletion src/pages/_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import createCache from '@emotion/cache';
import { CacheProvider, Global, ThemeProvider } from '@emotion/react';
import { global } from '@styles/global';
import { theme } from '@styles/theme';
import { AppLayout } from '@components/templates/AppLayout';
import '@fortawesome/fontawesome-svg-core/styles.css';

const cache = createCache({ key: 'css', prepend: true });

Expand All @@ -11,7 +13,9 @@ function MyApp({ Component, pageProps }) {
<CacheProvider value={cache}>
<ThemeProvider theme={theme}>
<Global styles={global} />
<Component {...pageProps} />
<AppLayout>
<Component {...pageProps} />
</AppLayout>
</ThemeProvider>
</CacheProvider>
);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_document.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function Document() {
<Html>
<Head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="true" />
<link
href="https://fonts.googleapis.com/css2?&family=Fira+Code:wght@300..700&family=Open+Sans:wght@300..700&display=optional"
rel="stylesheet"
Expand Down

0 comments on commit 2b844be

Please sign in to comment.