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