Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Jul 9, 2023
1 parent 4bd7607 commit 31bea9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/nextjs/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { useAuth } from "../auth";
import Link from "next/link";

import { useMediaQuery } from "@mui/material";
import { IconProp } from '@fortawesome/fontawesome-svg-core';

const asrAusSpeedrunsLogo = {
prefix: "asr",
Expand Down Expand Up @@ -113,7 +114,7 @@ const Navbar = ({ events = [], live = false }: NavbarProps) => {
<FontAwesomeIcon
width={20}
className={styles.icon}
icon={asrAusSpeedrunsLogo}
icon={asrAusSpeedrunsLogo as any}
/>
) : (
""
Expand All @@ -127,7 +128,7 @@ const Navbar = ({ events = [], live = false }: NavbarProps) => {
<li>
{/* @ts-ignore */}
{mobileWidth ? (
<FontAwesomeIcon width={20} className={styles.icon} icon={asrAusSpeedrunsLogo} />
<FontAwesomeIcon width={20} className={styles.icon} icon={asrAusSpeedrunsLogo as any} />
) : (
""
)}
Expand All @@ -138,7 +139,7 @@ const Navbar = ({ events = [], live = false }: NavbarProps) => {
<li>
{/* @ts-ignore */}
{mobileWidth ? (
<FontAwesomeIcon width={20} className={styles.icon} icon={asrAusSpeedrunsLogo} />
<FontAwesomeIcon width={20} className={styles.icon} icon={asrAusSpeedrunsLogo as any} />
) : (
""
)}
Expand Down

0 comments on commit 31bea9a

Please sign in to comment.