mirror of
https://github.com/vercel/commerce.git
synced 2025-07-21 11:51:20 +00:00
init:bank transfer
This commit is contained in:
parent
457055772e
commit
1d17953816
@ -3,7 +3,7 @@ import React from "react"
|
||||
import s from './TabPane.module.scss'
|
||||
|
||||
export interface TabPaneProps {
|
||||
active: boolean;
|
||||
active?: boolean;
|
||||
children?: React.ReactNode;
|
||||
tabName: string
|
||||
}
|
||||
|
@ -41,3 +41,5 @@ export { default as ImgWithLink} from './ImgWithLink/ImgWithLink'
|
||||
export { default as RecipeDetail} from './RecipeDetail/RecipeDetail'
|
||||
export { default as DrawerCommon} from './DrawerCommon/DrawerCommon'
|
||||
export { default as CartDrawer} from './CartDrawer/CartDrawer'
|
||||
export { default as TabPane} from './TabCommon/components/TabPane/TabPane'
|
||||
export { default as TabCommon} from './TabCommon/TabCommon'
|
||||
|
@ -4,6 +4,7 @@ import CheckoutCollapse from 'src/components/common/CheckoutCollapse/CheckoutCol
|
||||
import { CheckOutForm } from 'src/utils/types.utils'
|
||||
import s from './CheckoutInfo.module.scss'
|
||||
import CustomerInfoForm from './components/CustomerInfoForm/CustomerInfoForm'
|
||||
import PaymentInfoForm from './components/PaymentInfoForm/PaymentInfoForm'
|
||||
import ShippingInfoForm from './components/ShippingInfoForm/ShippingInfoForm'
|
||||
interface CheckoutInfoProps {}
|
||||
|
||||
@ -44,6 +45,11 @@ const CheckoutInfo = ({}: CheckoutInfoProps) => {
|
||||
title: 'Shipping Information',
|
||||
form: <ShippingInfoForm onConfirm={onConfirm} id={2}/>,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: 'Payment Information',
|
||||
form: <PaymentInfoForm onConfirm={onConfirm} id={3}/>,
|
||||
},
|
||||
]
|
||||
return (
|
||||
<div className={s.warpper}>
|
||||
|
@ -1,19 +1,26 @@
|
||||
import React from 'react'
|
||||
import TabPane from 'src/components/common/TabCommon/components/TabPane/TabPane'
|
||||
import TabCommon from 'src/components/common/TabCommon/TabCommon'
|
||||
import { TabCommon, TabPane } from 'src/components/common'
|
||||
import { CheckOutForm } from 'src/utils/types.utils'
|
||||
import BankTransfer from '../BankTransfer/BankTransfer'
|
||||
|
||||
import s from "./PaymentInfoForm.module.scss"
|
||||
interface PaymentInfoFormProps {
|
||||
|
||||
onConfirm?: (id:number,formInfo:CheckOutForm)=>void
|
||||
id:number
|
||||
}
|
||||
|
||||
const PaymentInfoForm = ({}: PaymentInfoFormProps) => {
|
||||
return (
|
||||
<div className={s.warpper}>
|
||||
<div className="">
|
||||
<TabCommon>
|
||||
{/* <TabPane tabName="Bank Transfer">
|
||||
|
||||
</TabPane> */}
|
||||
<TabPane tabName = "Bank Transfer">
|
||||
<BankTransfer/>
|
||||
</TabPane>
|
||||
<TabPane tabName = "Bank Transfer 2">
|
||||
<BankTransfer/>
|
||||
</TabPane>
|
||||
</TabCommon>
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user