From 9ed49d6ae7a37315f0a528d37b8c335ade0d1ef3 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 25 Aug 2021 11:07:18 +0700 Subject: [PATCH] bug: ViewAllItem pass props link to href --- pages/index.tsx | 2 +- src/components/common/ViewAllItem/ViewAllItem.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 0d2839418..1359f7e22 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -13,7 +13,7 @@ export default function Home() { }>{ButtonSize.large} - Button default large } disabled isIconSuffix={true}>Button with icon disabled } type={ButonType.light}>Button with icon - +

Go to pages/index.tsx to get your hand dirty!

diff --git a/src/components/common/ViewAllItem/ViewAllItem.tsx b/src/components/common/ViewAllItem/ViewAllItem.tsx index b9d4e4efe..5472525ac 100644 --- a/src/components/common/ViewAllItem/ViewAllItem.tsx +++ b/src/components/common/ViewAllItem/ViewAllItem.tsx @@ -3,13 +3,13 @@ import s from './ViewAllItem.module.scss' import Link from 'next/link' interface Props { - link?: string + link: string } const ViewAllItem = ({ link }: Props) => { return(