Skip to content

Commit 98bee93

Browse files
author
Welton Felix
committed
Downgrade do styled-components
1 parent 34f572c commit 98bee93

File tree

3 files changed

+52
-1233
lines changed

3 files changed

+52
-1233
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"react-modal": "^3.16.1",
2828
"react-spinners": "^0.13.6",
2929
"react-toggle": "^4.1.2",
30-
"styled-components": "^6.0.7"
30+
"styled-components": "^5.3.11"
3131
},
3232
"devDependencies": {
3333
"@next/eslint-plugin-next": "^13.0.4",

src/pages/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ export async function getStaticProps(): Promise<IStaticProps> {
8383
avatarUrl: data.avatar_url,
8484
name: data.name,
8585
ghUsername: data.login,
86-
teams: getRandomArrayItems(faunaMember.user_teams, 2),
86+
teams: faunaMember.user_teams
87+
? getRandomArrayItems(faunaMember.user_teams, 2)
88+
: [],
8789
});
8890
}
8991

0 commit comments

Comments
 (0)