Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
remiilekun committed May 14, 2021
1 parent e294d5a commit 741a597
Show file tree
Hide file tree
Showing 7 changed files with 816 additions and 3,034 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
"emotion": "^10.0.27",
"emotion-server": "^10.0.27",
"emotion-theming": "^10.0.27",
"next": "9.2.1",
"next": "^10.2.0",
"next-images": "^1.3.1",
"next-offline": "^5.0.0",
"react": "16.12.0",
"react-dom": "16.12.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-ga": "^2.7.0",
"react-helmet": "^5.2.1",
"react-reveal": "^1.2.2",
Expand Down
4 changes: 3 additions & 1 deletion src/GlobalStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,6 @@ const globalStyle = css`
}
`;

export default () => <Global styles={globalStyle} />;
const GlobalStyle = () => <Global styles={globalStyle} />;

export default GlobalStyle;
4 changes: 2 additions & 2 deletions src/components/molecules/Company.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const Company = ({ company, description, period, role }) => {
}}
>
{description.map(x => (
<Description>{x}</Description>
<Description key={x}>{x}</Description>
))}
</Box>
</Wrapper>
Expand All @@ -103,7 +103,7 @@ export const Company = ({ company, description, period, role }) => {

Company.propTypes = {
company: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
description: PropTypes.array.isRequired,
period: PropTypes.string.isRequired,
role: PropTypes.string.isRequired,
};
2 changes: 1 addition & 1 deletion src/components/molecules/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Project.propTypes = {
ios: PropTypes.string,
web: PropTypes.string,
}),
logo: PropTypes.func.isRequired,
logo: PropTypes.any,
logoType: PropTypes.string,
name: PropTypes.string.isRequired,
technologies: PropTypes.array.isRequired,
Expand Down
5 changes: 3 additions & 2 deletions src/lib/smoothScroll.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
function scrollAnchors(e, respond = null) {
function scrollAnchors(e) {
const distanceToTop = el => Math.floor(el.getBoundingClientRect().top);
e.preventDefault();
const targetID = respond ? respond.getAttribute('href') : this.getAttribute('href');
const [, id] = this.getAttribute('href').split('#');
const targetID = `#${id}`;
const targetAnchor = document.querySelector(targetID);
if (!targetAnchor) return;
const originalTop = distanceToTop(targetAnchor);
Expand Down
1 change: 0 additions & 1 deletion src/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default class MyDocument extends Document {
return (
<Html lang="en">
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="title" content="Remilekun Salami" />
<meta name="author" content="Remilekun Salami" />
<meta name="theme-color" content="#b0aff6" />
Expand Down
3,828 changes: 804 additions & 3,024 deletions yarn.lock

Large diffs are not rendered by default.

1 comment on commit 741a597

@vercel
Copy link

@vercel vercel bot commented on 741a597 May 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.