feat: prettier

This commit is contained in:
2024-09-27 04:47:04 +03:00
parent c5f839d9ef
commit de4fe450ab
253 changed files with 11322 additions and 10004 deletions

View File

@@ -1,18 +1,14 @@
import {FC} from "react";
import {Navigate} from "@tanstack/react-router";
import {useSelector} from "react-redux";
import {RootState} from "../../redux/store.ts";
import { FC } from "react";
import { Navigate } from "@tanstack/react-router";
import { useSelector } from "react-redux";
import { RootState } from "../../redux/store.ts";
const MainPage: FC = () => {
const authState = useSelector((state: RootState) => state.auth);
if (authState.isAuthorized) {
return (<Navigate to={"/leads"}/>)
return <Navigate to={"/leads"} />;
}
return (<>
return <></>;
};
</>
)
}
export default MainPage;
export default MainPage;