feat: add new design for join scandic friends checkbox
This commit is contained in:
@@ -13,19 +13,16 @@ import { trackLoginClick } from "@/utils/tracking"
|
||||
import { TrackingPosition } from "@/types/components/tracking"
|
||||
|
||||
export default function LoginButton({
|
||||
className,
|
||||
position,
|
||||
trackingId,
|
||||
children,
|
||||
color = "black",
|
||||
variant = "navigation",
|
||||
}: PropsWithChildren<{
|
||||
className: string
|
||||
trackingId: string
|
||||
position: TrackingPosition
|
||||
color?: LinkProps["color"]
|
||||
variant?: "navigation" | "signupVerification"
|
||||
}>) {
|
||||
...props
|
||||
}: PropsWithChildren<
|
||||
{
|
||||
trackingId: string
|
||||
position: TrackingPosition
|
||||
} & Omit<LinkProps, "href">
|
||||
>) {
|
||||
const lang = useLang()
|
||||
const pathName = useLazyPathname({ includeSearchParams: true })
|
||||
|
||||
@@ -45,14 +42,7 @@ export default function LoginButton({
|
||||
}, [position, trackingId])
|
||||
|
||||
return (
|
||||
<Link
|
||||
className={className}
|
||||
id={trackingId}
|
||||
color={color}
|
||||
href={href}
|
||||
prefetch={false}
|
||||
variant={variant}
|
||||
>
|
||||
<Link id={trackingId} prefetch={false} {...props} href={href}>
|
||||
{children}
|
||||
</Link>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user