From 3a3f950daaaf23a45b34cb57120fc4dc1ba6860b Mon Sep 17 00:00:00 2001 From: Ramin <39030920+raminr77@users.noreply.github.com> Date: Mon, 26 Jul 2021 19:25:01 +0430 Subject: Add RTL Direction & Persian Translation (#79) * feat: add RTL direction and persian lang * feat: init RTL direction * fix: style issues Co-authored-by: Ramin --- src/components/Card.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/components/Card.js') diff --git a/src/components/Card.js b/src/components/Card.js index 298f968..bcb7acc 100644 --- a/src/components/Card.js +++ b/src/components/Card.js @@ -3,7 +3,7 @@ import { useEffect, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import './style.css'; -export const Card = () => { +export const Card = ({ direction = 'ltr' }) => { const firstLoad = useRef(true); const [qrvalue, setQrvalue] = useState(''); const [network, setNetwork] = useState({ @@ -64,7 +64,7 @@ export const Card = () => { id="print-area" style={{ maxWidth: portrait ? '350px' : '100%' }} > -

+

{t('wifi.login')}

@@ -74,7 +74,13 @@ export const Card = () => { > -- cgit v1.2.3