From 92c9001c528956b778f05840e25ad23a75fe4c64 Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Mon, 27 Dec 2021 18:43:02 +0200 Subject: [PATCH] feat(AccountDetail): more transactions icon in RTL mode. --- src/containers/Drawers/AccountDrawer/AccountDrawerTable.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/containers/Drawers/AccountDrawer/AccountDrawerTable.js b/src/containers/Drawers/AccountDrawer/AccountDrawerTable.js index 7027dd8bf..649f01a86 100644 --- a/src/containers/Drawers/AccountDrawer/AccountDrawerTable.js +++ b/src/containers/Drawers/AccountDrawer/AccountDrawerTable.js @@ -12,6 +12,7 @@ import { useAccountReadEntriesColumns } from './utils'; import withDrawerActions from 'containers/Drawer/withDrawerActions'; import { TableStyle } from '../../../common'; +import { useAppIntlContext } from 'components/AppIntlProvider'; /** * account drawer table. @@ -26,6 +27,8 @@ function AccountDrawerTable({ closeDrawer }) { const handleLinkClick = () => { closeDrawer(drawerName); }; + // Application intl context. + const { isRTL } = useAppIntlContext(); return ( @@ -42,7 +45,7 @@ function AccountDrawerTable({ closeDrawer }) { to={`/financial-reports/general-ledger`} onClick={handleLinkClick} > - ← {intl.get('view_more_transactions')} + {isRTL ? '→' : '←'} {intl.get('view_more_transactions')}