Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/__tests__/api/buy-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ describe('Buy Process - API Integration', () => {

if (result.error) {
console.log(`Payment info creation returned error: ${result.error} (status: ${result.status})`);
const expectedErrors = ['Trading not allowed', 'RecommendationRequired', 'EmailRequired', 'KYC required', 'User not found', 'Ident data incomplete'];
const expectedErrors = ['Trading not allowed', 'RecommendationRequired', 'EmailRequired', 'KYC required', 'KycRequired', 'User not found', 'Ident data incomplete'];
const isExpectedError = expectedErrors.some((e) => result.error?.includes(e));
if (isExpectedError) {
console.log('Skipping test - account restriction');
Expand Down
16 changes: 15 additions & 1 deletion src/screens/support.screen.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
import { DfxIcon, IconColor, IconVariant, StyledVerticalStack } from '@dfx.swiss/react-components';
import { DfxIcon, IconColor, IconVariant, StyledInfoText, StyledVerticalStack } from '@dfx.swiss/react-components';
import { FaTelegram } from 'react-icons/fa';
import { IoMdHelpCircle } from 'react-icons/io';
import { MdEditSquare } from 'react-icons/md';
import { useSettingsContext } from 'src/contexts/settings.context';
import { useLayoutOptions } from 'src/hooks/layout-config.hook';
import { useNavigation } from '../hooks/navigation.hook';

const EUR_IBAN_NOTICE_EXPIRES = new Date('2026-02-03');

export default function SupportScreen(): JSX.Element {
const { navigate } = useNavigation();
const { translate, language } = useSettingsContext();

const showEurIbanNotice = new Date() < EUR_IBAN_NOTICE_EXPIRES;

useLayoutOptions({ title: translate('navigation/links', 'Support'), onBack: undefined });

return (
<StyledVerticalStack gap={3} full className="text-left">
{showEurIbanNotice && (
<div className="p-4 border border-dfxGray-400 bg-dfxGray-400/10 rounded-md">
<StyledInfoText iconColor={IconColor.BLUE}>
{translate(
'screens/support',
'The existing EUR IBAN (CH8583019DFXSWISSEURX) is currently experiencing technical issues. Please use your personal IBAN for EUR transactions instead. You can find your personal IBAN on the Buy page.',
)}
</StyledInfoText>
</div>
)}
<StyledButtonTile
title={translate('screens/support', 'FAQ')}
description={translate('screens/support', 'We have summarized the most common questions for you in our FAQ.')}
Expand Down
1 change: 1 addition & 0 deletions src/translations/languages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,7 @@
"Support": "Support",
"Support tickets": "Support-Tickets",
"View tickets": "Tickets anzeigen",
"The existing EUR IBAN (CH8583019DFXSWISSEURX) is currently experiencing technical issues. Please use your personal IBAN for EUR transactions instead. You can find your personal IBAN on the Buy page.": "Die bestehende EUR-IBAN (CH8583019DFXSWISSEURX) hat derzeit technische Probleme. Bitte verwende stattdessen deine persönliche IBAN für EUR-Transaktionen. Du findest deine persönliche IBAN auf der Kaufseite.",

"Support issue": "Supportanfrage",
"The issue has been successfully submitted. You will be contacted by email.": "Die Anfrage wurde erfolgreich eingereicht. Du wirst per E-Mail kontaktiert.",
Expand Down
1 change: 1 addition & 0 deletions src/translations/languages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@
"screens/support": {
"Support": "Support",
"Support tickets": "Tickets de support",
"The existing EUR IBAN (CH8583019DFXSWISSEURX) is currently experiencing technical issues. Please use your personal IBAN for EUR transactions instead. You can find your personal IBAN on the Buy page.": "L'IBAN EUR existant (CH8583019DFXSWISSEURX) rencontre actuellement des problèmes techniques. Veuillez utiliser votre IBAN personnel pour les transactions en EUR. Vous trouverez votre IBAN personnel sur la page d'achat.",

"Support issue": "Demande de support",
"The issue has been successfully submitted. You will be contacted by email.": "La demande a été soumise avec succès. Vous serez contacté par e-mail.",
Expand Down
1 change: 1 addition & 0 deletions src/translations/languages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@
"screens/support": {
"Support": "Supporto",
"Support tickets": "Ticket di supporto",
"The existing EUR IBAN (CH8583019DFXSWISSEURX) is currently experiencing technical issues. Please use your personal IBAN for EUR transactions instead. You can find your personal IBAN on the Buy page.": "L'IBAN EUR esistente (CH8583019DFXSWISSEURX) sta attualmente riscontrando problemi tecnici. Si prega di utilizzare il proprio IBAN personale per le transazioni in EUR. Puoi trovare il tuo IBAN personale nella pagina Acquista.",

"Support issue": "Problema di supporto",
"The issue has been successfully submitted. You will be contacted by email.": "Il problema è stato inviato con successo. Sarete contattati via e-mail.",
Expand Down
Loading