File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
refactor/src/components/Checkout Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
// Imports
2
- import { useForm } from 'react-hook-form' ;
2
+ import { FieldValues , SubmitHandler , useForm } from 'react-hook-form' ;
3
3
4
4
// Components
5
5
import { InputField } from '@/components/Input/InputField.component' ;
6
+ import Button from '../UI/Button.component' ;
6
7
7
8
// Constants
8
9
import { INPUT_FIELDS } from '@/utils/constants/INPUT_FIELDS' ;
9
10
11
+ interface IBillingProps {
12
+ onSubmit : SubmitHandler < FieldValues > ;
13
+ }
14
+
10
15
const OrderButton = ( { register } : any ) => (
11
16
< div className = "w-full p-2" >
12
17
< input
@@ -17,13 +22,13 @@ const OrderButton = ({ register }: any) => (
17
22
checked
18
23
{ ...register ( 'paymentMethod' ) }
19
24
/>
20
- < button className = "flex px -4 py-2 mx-auto font-bold bg-white border border-gray-400 border-solid rounded hover:bg-gray-400 " >
21
- BESTILL
22
- </ button >
25
+ < div className = "mt -4 flex justify-center " >
26
+ < Button > BESTILL</ Button >
27
+ </ div >
23
28
</ div >
24
29
) ;
25
30
26
- const Billing = ( { onSubmit } : any ) => {
31
+ const Billing = ( { onSubmit } : IBillingProps ) => {
27
32
const {
28
33
register,
29
34
handleSubmit,
You can’t perform that action at this time.
0 commit comments