Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f2e278a8cf |
Vendored
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"[javascriptreact]": {
|
"[javascriptreact]": {
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
"editor.defaultFormatter": null
|
||||||
},
|
},
|
||||||
"javascript.validate.enable": false, //disable all built-in syntax checking
|
"javascript.validate.enable": false, //disable all built-in syntax checking
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export default function Layout({ children }) {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const logOut = () => {
|
const logOut = () => {
|
||||||
localStorage.removeItem("email");
|
localStorage.removeItem("email");
|
||||||
localStorage.clear();
|
localStorage.removeItem('session_token');
|
||||||
toast.success("Come Back Soon", {
|
toast.success("Come Back Soon", {
|
||||||
icon: `🙂`,
|
icon: `🙂`,
|
||||||
});
|
});
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -95,7 +95,7 @@ export default function Settings() {
|
|||||||
<div className="content-container w-full pt-10 rounded-2xl bg-white dark:bg-dark-white ">
|
<div className="content-container w-full pt-10 rounded-2xl bg-white dark:bg-dark-white ">
|
||||||
<div className="content-heading w-full mb-8 lg:px-10 px-4">
|
<div className="content-heading w-full mb-8 lg:px-10 px-4">
|
||||||
<h1 className="text-xl font-bold text-dark-gray dark:text-white antialiased">
|
<h1 className="text-xl font-bold text-dark-gray dark:text-white antialiased">
|
||||||
Personal Information
|
Parsonal Informaiton
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div className="content-body w-full lg:flex lg:px-10 px-4">
|
<div className="content-body w-full lg:flex lg:px-10 px-4">
|
||||||
@@ -144,7 +144,7 @@ export default function Settings() {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p className="text-18 tracking-wide">
|
<p className="text-18 tracking-wide">
|
||||||
Notification Settings
|
Notifiction Setting
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
+23
-1
@@ -1,7 +1,29 @@
|
|||||||
import React from "react";
|
import React, {useEffect} from "react";
|
||||||
import Home from "../components/Home";
|
import Home from "../components/Home";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
|
import { toast } from "react-toastify";
|
||||||
|
|
||||||
export default function HomePages() {
|
export default function HomePages() {
|
||||||
|
|
||||||
|
const { drawer } = useSelector((state) => state.drawer);
|
||||||
|
const dispatch = useDispatch();
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const logOut = () => {
|
||||||
|
localStorage.removeItem("email");
|
||||||
|
localStorage.removeItem('session_token');
|
||||||
|
toast.success("Come Back Soon", {
|
||||||
|
icon: `🙂`,
|
||||||
|
});
|
||||||
|
|
||||||
|
navigate("/login", { replace: true });
|
||||||
|
};
|
||||||
|
|
||||||
|
useEffect(()=>{
|
||||||
|
setTimeout(()=>{
|
||||||
|
logOut()
|
||||||
|
}, 300000) //expires user login session after 5 minutes
|
||||||
|
},[])
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Home />
|
<Home />
|
||||||
|
|||||||
@@ -19,9 +19,6 @@ module.exports = {
|
|||||||
"dark-light-purple":"#5356fb29"
|
"dark-light-purple":"#5356fb29"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
listStyleType: {
|
|
||||||
roman: 'upper-roman'
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
plugins: [require("@tailwindcss/line-clamp")],
|
plugins: [require("@tailwindcss/line-clamp")],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user