feat: Delivery Item

This commit is contained in:
sonnguyenkieio
2021-09-01 09:11:37 +07:00
parent ffede73246
commit 2f02611a16

View File

@@ -1,6 +1,7 @@
import classNames from "classnames"
import React from "react"
import s from './ReOrder.module.scss'
import Link from 'next/link'
interface ReOrderProps {
@@ -8,12 +9,14 @@ interface ReOrderProps {
href?: string;
}
const ReOrder = ({ show="" ,href } : ReOrderProps) => {
const ReOrder = ({ show="", href="#" } : ReOrderProps) => {
return (
<div className={classNames(s.reOrder, {
[s[show]]: show
})}>
Re-Order
<Link href={href}>
<a>Re-Order</a>
</Link>
</div>
)
}