Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Catinaud Taris committed Jun 17, 2024
1 parent 595a308 commit 9d4e182
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/links/MainLink.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import clsx from "clsx";
import Link from "next/link";
import { useTranslations } from "next-intl";
import React from "react";

type MainLinkProps = {
Expand All @@ -21,8 +20,6 @@ const MainLink = ({
hasIcon = false,
...rest
}: MainLinkProps) => {
const t = useTranslations("components");

if (!href || !label) {
return <></>;
}
Expand All @@ -32,6 +29,7 @@ const MainLink = ({
className={clsx(
"inline-flex items-center gap-2 mt-6 lg:mt-12 p-4 lg:text-xl text-red1 font-secondary uppercase !no-underline rounded-xl tracking-widest border-2 border-red1 hover:bg-red1 hover:text-darkblue1 transition-colors ease-in-out duration-100",
mode === "dark" ? "bg-darkblue1" : "bg-transparent",
className,
)}
href={href}
rel={isBlank ? "noopener noreferrer" : undefined}
Expand Down

0 comments on commit 9d4e182

Please sign in to comment.