Updated types

This commit is contained in:
2025-09-27 18:55:46 +02:00
parent d13ef3bea9
commit b2fb358bb0
3 changed files with 25 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
import { Button } from "@/components/ui/button"
import { Route } from "next"
import Link from "next/link"
import { CgWebsite } from "react-icons/cg"
import { FaTwitch, FaYoutube } from "react-icons/fa"
@@ -38,7 +39,7 @@ function SocialIcon({ href, children }: { href?: string, children: React.ReactNo
return (
<Button variant="ghost" className="transition-all hover:scale-125" asChild>
<Link href={`https://${href.replace("https://", "")}`}>
<Link href={href as Route}>
{children}
</Link>
</Button>