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
25 changes: 15 additions & 10 deletions src/pages/Wallet/WalletManagment.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { Button, Card, Text } from '@appquality/appquality-design-system';
import { useEffect } from 'react';
import { PiggyBankFill } from 'react-bootstrap-icons';
import { Trans, useTranslation } from 'react-i18next';
import { shallowEqual, useSelector } from 'react-redux';
import { useAppDispatch } from 'src/redux/provider';
import { Button, Card, Text } from "@appquality/appquality-design-system";
import { useEffect } from "react";
import { PiggyBankFill } from "react-bootstrap-icons";
import { Trans, useTranslation } from "react-i18next";
import { shallowEqual, useSelector } from "react-redux";
import { useAppDispatch } from "src/redux/provider";
import {
checkPaymentInProcessing,
fetchBooty,
setBootyDetailsModalOpen,
setPaymentModalOpen,
} from 'src/redux/wallet/actionCreator';
import styled from 'styled-components';
} from "src/redux/wallet/actionCreator";
import localizedUrl from "src/utils/localizedUrl";
import styled from "styled-components";

const WalletManagmentRow = styled.div`
display: flex;
Expand Down Expand Up @@ -68,7 +69,9 @@ export const WalletManagment = () => {
"Available tags : <fiscal_profile_link> (Link to fiscal profile):::__WALLET_CARD-REQUEST_DISCLAIMER-NOTCOMPLETED MAX: 150"
}
components={{
fiscal_profile_link: <a href="/my-account/?tab=fiscal" />,
fiscal_profile_link: (
<a href={localizedUrl(`/my-account/?tab=fiscal`)} />
),
}}
/>
);
Expand Down Expand Up @@ -103,7 +106,9 @@ export const WalletManagment = () => {
"Available tags : <fiscal_profile_link> (Link to fiscal profile):::__WALLET_CARD-REQUEST_DISCLAIMER-CHECKPROFILE MAX: 150"
}
components={{
fiscal_profile_link: <a href="/my-account/?tab=fiscal" />,
fiscal_profile_link: (
<a href={localizedUrl(`/my-account/?tab=fiscal`)} />
),
}}
/>
);
Expand Down
5 changes: 5 additions & 0 deletions src/utils/localizedUrl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import i18next from "i18next";

export default (url: string) => {
return `${i18next.language === "en" ? "" : "/" + i18next.language}${url}`;
};