Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CaliCastle committed May 10, 2023
1 parent fd3162d commit bdd87df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/links/SocialLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function getIconForUrl(url: string): IconType | undefined {
`^(?:https?:\/\/)?(?:[^@/\\n]+@)?(?:www.)?` + regexStr
)
if (regex.test(url)) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const { icon } = iconMapper[regexStr]!
return icon
}
Expand All @@ -51,8 +52,7 @@ function getIconForPlatform(
return undefined
}

for (const regexStr in iconMapper) {
const { icon, platform: p } = iconMapper[regexStr]!
for (const { icon, platform: p } of Object.values(iconMapper)) {
if (p === platform) {
return icon
}
Expand Down
2 changes: 1 addition & 1 deletion components/ui/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Card.Eyebrow = function CardEyebrow({
decorate?: boolean
className?: string
children: React.ReactNode
} & React.HTMLAttributes<any>) {
} & React.HTMLAttributes<unknown>) {
return (
<Component
className={clsxm(
Expand Down

0 comments on commit bdd87df

Please sign in to comment.