added loader-popup

This commit is contained in:
VyacheslavShtyrlin
2023-02-07 18:04:18 +05:00
parent 9f0de105d6
commit e7360919fe
15 changed files with 387 additions and 323 deletions
+4 -7
View File
@@ -1,5 +1,5 @@
import "./App.css";
import { useEffect, useState } from "react";
import { useEffect } from "react";
import { Redirect, Route, Switch, useHistory } from "react-router-dom";
import { Header } from "./components/header/header";
@@ -15,11 +15,8 @@ import { ICards } from "./models/ICards";
import { useTranslation } from "react-i18next";
import cookies from "js-cookie";
const App: React.FC<any> = () => {
const [visible, setVisible] = useState({
popup1: true,
popup2: false,
});
const App: React.FC = () => {
const dispatch = useAppDispatch();
const history = useHistory();
@@ -66,7 +63,7 @@ const App: React.FC<any> = () => {
<div className="blur">
<Header></Header>
<div className="content__container">
<Main visible={visible} setVisible={setVisible}></Main>
<Main></Main>
</div>
</div>
</div>