Skip to content

Commit

Permalink
refactor(components/connect/button): use link instead of onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnigos committed Nov 24, 2023
1 parent 3425173 commit 54520f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/components/connect/button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use client'

import Link from 'next/link'

import { Button } from '../ui/button'

import { environment } from '@app/config/environment'
Expand All @@ -8,9 +10,10 @@ export function ConnectButton() {
return (
<Button
onClick={() => window.open(`${environment.API_URL}/auth/login`, '_self')}
asChild
variant="success"
>
Connect
<Link href={`${environment.API_URL}/auth/login`}>Connect</Link>
</Button>
)
}

1 comment on commit 54520f5

@vercel
Copy link

@vercel vercel bot commented on 54520f5 Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rigtch-fm – ./

rigtch-fm-git-main-rigtch-team.vercel.app
rigtch-fm.vercel.app
rigtch-fm-rigtch-team.vercel.app

Please sign in to comment.