init:bank transfer

This commit is contained in:
unknown 2021-09-08 17:41:26 +07:00
parent 457055772e
commit 1d17953816
4 changed files with 23 additions and 8 deletions

View File

@ -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
}

View File

@ -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'

View File

@ -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}>

View File

@ -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>
)
}