Updated types
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user