mirror of
https://github.com/vercel/commerce.git
synced 2025-07-16 17:31:22 +00:00
bug: ViewAllItem pass props link to href
This commit is contained in:
parent
e83f3e0512
commit
9ed49d6ae7
@ -13,7 +13,7 @@ export default function Home() {
|
|||||||
<ButtonCommon size={ButtonSize.large} icon={<IconBuy/>}>{ButtonSize.large} - Button default large</ButtonCommon>
|
<ButtonCommon size={ButtonSize.large} icon={<IconBuy/>}>{ButtonSize.large} - Button default large</ButtonCommon>
|
||||||
<ButtonCommon icon={<IconBuy/>} disabled isIconSuffix={true}>Button with icon disabled</ButtonCommon>
|
<ButtonCommon icon={<IconBuy/>} disabled isIconSuffix={true}>Button with icon disabled</ButtonCommon>
|
||||||
<ButtonCommon icon={<IconBuy/>} type={ButonType.light}>Button with icon</ButtonCommon>
|
<ButtonCommon icon={<IconBuy/>} type={ButonType.light}>Button with icon</ButtonCommon>
|
||||||
<ViewAllItem />
|
<ViewAllItem link="/all"/>
|
||||||
<ItemWishList isActive={false} />
|
<ItemWishList isActive={false} />
|
||||||
<Logo />
|
<Logo />
|
||||||
<p>Go to <code>pages/index.tsx</code> to get your hand dirty!</p>
|
<p>Go to <code>pages/index.tsx</code> to get your hand dirty!</p>
|
||||||
|
@ -3,13 +3,13 @@ import s from './ViewAllItem.module.scss'
|
|||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
link?: string
|
link: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const ViewAllItem = ({ link }: Props) => {
|
const ViewAllItem = ({ link }: Props) => {
|
||||||
return(
|
return(
|
||||||
<div className={s.viewAll}>
|
<div className={s.viewAll}>
|
||||||
<Link href={"/all"}>
|
<Link href={link}>
|
||||||
<a className={s.conTent}>
|
<a className={s.conTent}>
|
||||||
View All
|
View All
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user