@akinon/pz-gpay 1.17.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/readme.md +1 -0
- package/src/views/gpay-option.tsx +2 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/readme.md
CHANGED
@@ -33,6 +33,7 @@ export default GarantiPayRedirect;
|
|
33
33
|
| Properties | Type | Description |
|
34
34
|
|----------------------|--------|--------------------------------------------|
|
35
35
|
| translations | object | The translations of the component. |
|
36
|
+
| containerClassName | string | The CSS class to apply to the container. |
|
36
37
|
| titleClassName | string | The CSS class to apply to the title. |
|
37
38
|
| descriptionClassName | string | The CSS class to apply to the description. |
|
38
39
|
| buttonClassName | string | The CSS class to apply to the button. |
|
@@ -17,6 +17,7 @@ import { Button } from '@akinon/next/components/button';
|
|
17
17
|
const gpayFormSchema = yup.object();
|
18
18
|
|
19
19
|
enum Elements {
|
20
|
+
container,
|
20
21
|
title,
|
21
22
|
description,
|
22
23
|
button
|
@@ -71,7 +72,7 @@ export function GPayOption(props: GpayOptionProps) {
|
|
71
72
|
return (
|
72
73
|
<form
|
73
74
|
id="gpay_payment"
|
74
|
-
className=
|
75
|
+
className={props.containerClassName ?? 'p-5 space-y-5 lg:p-10'}
|
75
76
|
onSubmit={handleSubmit(onSubmit)}
|
76
77
|
>
|
77
78
|
<h1 className={twMerge('text-2xl font-bold', props.titleClassName)}>
|