mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-02 02:10:27 +00:00
Update button behavior to work as link
This commit is contained in:
@@ -85,7 +85,7 @@ const Index: FC<Props> = ({ portfolioProjects }) => {
|
||||
<div className='projects-wrapper'>
|
||||
{portfolioProjects.length !== 0 ? (
|
||||
portfolioProjects.map(({ slug, ...rest }) => (
|
||||
<Card {...rest} key={slug} onClick={() => router.push(`/portfolio/${slug}`)} />
|
||||
<Card {...rest} key={slug} href={`/portfolio/${slug}`} />
|
||||
))
|
||||
) : (
|
||||
<h4>Nothing for now</h4>
|
||||
|
||||
Reference in New Issue
Block a user