From 0c13f8d35848baddc57cda1d0a35c62d3c6b669e Mon Sep 17 00:00:00 2001 From: Ashraf Monshi Date: Thu, 13 May 2021 09:15:37 +0300 Subject: [PATCH] add rtl support --- components/layout/Footer.js | 9 +++++++-- components/layout/Header.js | 8 ++++++-- components/layout/Layout.js | 13 +++++++++++-- lang/ar-SA.json | 3 ++- package.json | 1 + postcss.config.js | 1 + 6 files changed, 28 insertions(+), 7 deletions(-) diff --git a/components/layout/Footer.js b/components/layout/Footer.js index 73e010bc..547896c3 100644 --- a/components/layout/Footer.js +++ b/components/layout/Footer.js @@ -1,14 +1,19 @@ import React from 'react'; import classNames from 'classnames'; -import { FormattedMessage } from 'react-intl'; +import { FormattedMessage, useIntl } from 'react-intl'; import Link from 'components/common/Link'; import styles from './Footer.module.css'; import useVersion from 'hooks/useVersion'; export default function Footer() { const { current } = useVersion(); + const intl = useIntl(); + return ( -