diff --git a/public/locales/bg/donation-flow.json b/public/locales/bg/donation-flow.json
index 8514038a1..e039106a0 100644
--- a/public/locales/bg/donation-flow.json
+++ b/public/locales/bg/donation-flow.json
@@ -102,7 +102,7 @@
},
"noregister": {
"label": "Продължете без регистрация ",
- "description": "Продължавайки без регистрация, нямате възможност да запазите дарението в историята на профила си както и да правите месечни дарения по избрана кампания"
+ "description": "Продължавайки без регистрация, нямате възможност да запазите дарението в историята на профила си както и да правите месечни дарения по избрана кампания."
},
"field": {
"password": "Парола",
diff --git a/public/locales/en/donation-flow.json b/public/locales/en/donation-flow.json
index 1d888caf6..2f6c0ca80 100644
--- a/public/locales/en/donation-flow.json
+++ b/public/locales/en/donation-flow.json
@@ -56,7 +56,7 @@
},
"card-data": {
"name-label": "Cardholder name",
- "error": {
+ "errors": {
"email": "Please enter your email",
"name": "Please enter your name"
}
diff --git a/src/components/client/donation-flow/steps/Amount.tsx b/src/components/client/donation-flow/steps/Amount.tsx
index 303327984..986862668 100644
--- a/src/components/client/donation-flow/steps/Amount.tsx
+++ b/src/components/client/donation-flow/steps/Amount.tsx
@@ -27,7 +27,7 @@ export const initialAmountFormValues = {
export const amountValidation = {
amountChosen: yup.string().when('payment', {
is: 'card',
- then: yup.string().required(),
+ then: yup.string().optional(),
}),
finalAmount: yup.number().when('payment', {
is: (payment: string | null) => ['card', null].includes(payment),
diff --git a/src/components/client/donation-flow/steps/authentication/InlineRegisterForm.tsx b/src/components/client/donation-flow/steps/authentication/InlineRegisterForm.tsx
index b0e3cdc90..3da6606db 100644
--- a/src/components/client/donation-flow/steps/authentication/InlineRegisterForm.tsx
+++ b/src/components/client/donation-flow/steps/authentication/InlineRegisterForm.tsx
@@ -83,7 +83,6 @@ export default function InlineRegisterForm() {
try {
setLoading(true)
// Register in Keycloak
-
if (values.terms && values.gdpr && values.password === values.confirmPassword) {
await register(values)
} else if (!values.terms) {
@@ -143,7 +142,7 @@ export default function InlineRegisterForm() {
@@ -155,11 +154,11 @@ export default function InlineRegisterForm() {
)}
-
+
{!formik.values.registerTerms && formik.touched.registerTerms && (
{t('validation:terms-of-use')}
)}
-
+
{!formik.values.registerGdpr && formik.touched.registerGdpr && (
{t('validation:terms-of-service')}
diff --git a/src/components/client/donation-flow/steps/payment-method/PaymentMethod.tsx b/src/components/client/donation-flow/steps/payment-method/PaymentMethod.tsx
index 16769a641..a021bf558 100644
--- a/src/components/client/donation-flow/steps/payment-method/PaymentMethod.tsx
+++ b/src/components/client/donation-flow/steps/payment-method/PaymentMethod.tsx
@@ -35,13 +35,13 @@ export default function PaymentMethod({
{
value: 'card',
label: t('step.payment-method.field.method.card'),
- icon: ,
+ icon: ,
disabled: false,
},
{
value: 'bank',
label: t('step.payment-method.field.method.bank'),
- icon: ,
+ icon: ,
disabled: mode.value === 'subscription',
},
]
diff --git a/src/components/common/SocialShareListButton.tsx b/src/components/common/SocialShareListButton.tsx
index ffe3bc4ab..b8fc77091 100644
--- a/src/components/common/SocialShareListButton.tsx
+++ b/src/components/common/SocialShareListButton.tsx
@@ -8,7 +8,7 @@ import {
PopoverProps,
ButtonProps,
} from '@mui/material'
-import { ContentCopy, Facebook, LinkedIn, Share, Twitter } from '@mui/icons-material'
+import { ContentCopy, Facebook, LinkedIn, Share, Twitter, X } from '@mui/icons-material'
import { AlertStore } from 'stores/AlertStore'
import theme from 'common/theme'
@@ -25,7 +25,7 @@ export default function SocialShareListButton({
}) {
const { t } = useTranslation('common')
const [anchorEl, setAnchorEl] = React.useState(null)
- const serializedUrl = new URLSearchParams(url).toString()
+
const handleClick = (event: React.MouseEvent) => {
setAnchorEl(event.currentTarget)
}
@@ -62,20 +62,20 @@ export default function SocialShareListButton({
{t('components.social-share.copy')}
-
+
{t('components.social-share.share')} Facebook
{t('components.social-share.share')} LinkedIn
-
- {t('components.social-share.share')} Twitter
-
+
+ {t('components.social-share.share')} X
+