added i18next language lib and some style fixes

This commit is contained in:
VyacheslavShtyrlin
2022-12-27 19:49:00 +05:00
parent c21a5c55a0
commit 5c8403fd7f
29 changed files with 732 additions and 335 deletions
@@ -1,10 +1,10 @@
import "../../styles/styles.css";
import "./popupConnect.css";
import { useHistory } from "react-router-dom";
import { useTranslation } from "react-i18next";
export const PopupConnectEx: React.FC<any> = ({
setVisible,
text,
onConnect,
logo,
setValue,
@@ -12,6 +12,7 @@ export const PopupConnectEx: React.FC<any> = ({
isLoading,
}) => {
const history = useHistory();
const { t } = useTranslation();
const handleConnect = () => {
onConnect().then((res: any) => {
@@ -28,7 +29,7 @@ export const PopupConnectEx: React.FC<any> = ({
<div className="popup__container">
<div className="popup__content">
<img alt="logoRC" className="logo__popup_ex" src={logo}></img>
<p className="popup__title">{text.caption}</p>
<p className="popup__title">{t("popup-connect-title")}</p>
<input
value={value}
onChange={(e) => setValue(e.target.value)}
@@ -42,7 +43,7 @@ export const PopupConnectEx: React.FC<any> = ({
!!value || isLoading ? "button" : "button button__disabled"
}
>
{text.button}
{t("popup-connect-btn-continue")}
</button>
<span className="line"></span>
<button
@@ -54,7 +55,7 @@ export const PopupConnectEx: React.FC<any> = ({
}
className="popup__caption"
>
{text.caption1}
{t("popup-connect-btn-mode")}
</button>
</div>
</div>