Merge branch 'reza-dev' of https://github.com/sinmajidi/Salona-new-version into production
This commit is contained in:
@@ -5,6 +5,7 @@ import { version } from "@package.json";
|
||||
import { useCheckOTP, useLoginUser } from "@/services/Account";
|
||||
import OTPForm from "@/components/OTPFormLogin";
|
||||
import { newAppointmentRoutes } from "@/apps/new-ui/routes";
|
||||
import { BeatLoader } from "react-spinners";
|
||||
|
||||
const Login = () => {
|
||||
const { currectAccount } = useMultiAccounts();
|
||||
@@ -22,6 +23,9 @@ const Login = () => {
|
||||
// }
|
||||
if (currectAccount && return_url) {
|
||||
window.location.replace(`${return_url}?auth=${currectAccount.authToken}`);
|
||||
return <div className="w-full flex items-center justify-center h-[300px]">
|
||||
<BeatLoader/>
|
||||
</div>
|
||||
}
|
||||
return <Navigate to={newAppointmentRoutes.explore} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user