yarn lint

This commit is contained in:
Belle 2022-12-16 17:06:24 -05:00
parent 97ccac8231
commit 2bc9a34cd0
3 changed files with 15 additions and 13 deletions

View file

@ -153,6 +153,7 @@ export default function Hackathons({ data, stars }) {
color: 'white'
}
}}
key={data.name}
>
{data.logo && (
<Box
@ -220,6 +221,7 @@ export default function Hackathons({ data, stars }) {
color: 'white'
}
}}
key={data.name}
>
{data.logo && (
<Box

View file

@ -6,7 +6,7 @@ export default function Secret({ reveal, ...props }) {
useEffect(() => {
setImage('https://geta.dino.icu/dino.png')
})
},[])
return (
<Box

View file

@ -8,27 +8,27 @@ export default async function github(req, res) {
let gitHubData = initialGitHubData.map(x => ({
type: x.type,
user:
x.type == 'PushEvent'
x.type === 'PushEvent'
? x.actor.login
: x.type == 'PullRequestEvent'
: x.type === 'PullRequestEvent'
? x.actor.login
: x.type == 'WatchEvent'
: x.type === 'WatchEvent'
? x.actor.login
: null,
userImage:
x.type == 'PushEvent'
x.type === 'PushEvent'
? x.actor.avatar_url
: x.type == 'PullRequestEvent'
: x.type === 'PullRequestEvent'
? x.actor.avatar_url
: x.type == 'WatchEvent'
: x.type === 'WatchEvent'
? x.actor.avatar_url
: null,
message:
x.type == 'PushEvent'
x.type === 'PushEvent'
? x.payload.commits[0].message
: x.type == 'PullRequestEvent'
: x.type === 'PullRequestEvent'
? x.payload.pull_request.title
: x.type == 'WatchEvent'
: x.type === 'WatchEvent'
? `starred ${x.repo.name}`
: null,
time: x.created_at
@ -36,9 +36,9 @@ export default async function github(req, res) {
gitHubData = gitHubData.filter(
x =>
x.type == 'PushEvent' ||
x.type == 'PullRequestEvent' ||
x.type == 'WatchEvent'
x.type === 'PushEvent' ||
x.type === 'PullRequestEvent' ||
x.type === 'WatchEvent'
)
res.json(gitHubData)