mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 19:51:23 +00:00
✨ feat: Delivery Item
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import classNames from "classnames"
|
import classNames from "classnames"
|
||||||
import React from "react"
|
import React from "react"
|
||||||
import s from './ReOrder.module.scss'
|
import s from './ReOrder.module.scss'
|
||||||
|
import Link from 'next/link'
|
||||||
|
|
||||||
|
|
||||||
interface ReOrderProps {
|
interface ReOrderProps {
|
||||||
@@ -8,12 +9,14 @@ interface ReOrderProps {
|
|||||||
href?: string;
|
href?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ReOrder = ({ show="" ,href } : ReOrderProps) => {
|
const ReOrder = ({ show="", href="#" } : ReOrderProps) => {
|
||||||
return (
|
return (
|
||||||
<div className={classNames(s.reOrder, {
|
<div className={classNames(s.reOrder, {
|
||||||
[s[show]]: show
|
[s[show]]: show
|
||||||
})}>
|
})}>
|
||||||
Re-Order
|
<Link href={href}>
|
||||||
|
<a>Re-Order</a>
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user