From a32e8ac3452cacab610a780438d5d3184aea2586 Mon Sep 17 00:00:00 2001 From: meet Date: Thu, 11 Jul 2024 20:33:59 +0530 Subject: [PATCH] Added favicon and title and every page --- admin/index.html | 2 +- admin/src/components/SideBar.tsx | 4 +++- admin/src/pages/Dashboard.tsx | 2 ++ admin/src/pages/PageNotFound.tsx | 2 +- admin/src/pages/Posts.tsx | 2 ++ admin/src/pages/Profile.tsx | 2 ++ admin/src/pages/Signin.tsx | 2 +- admin/src/pages/Users.tsx | 2 ++ 8 files changed, 14 insertions(+), 4 deletions(-) diff --git a/admin/index.html b/admin/index.html index e4b78eae..7dac3e45 100644 --- a/admin/index.html +++ b/admin/index.html @@ -2,7 +2,7 @@ - + Vite + React + TS diff --git a/admin/src/components/SideBar.tsx b/admin/src/components/SideBar.tsx index 4241414e..67f4b20d 100644 --- a/admin/src/components/SideBar.tsx +++ b/admin/src/components/SideBar.tsx @@ -15,7 +15,9 @@ const SideBar = ({ sidebarOpen, toggleSidebar }: { sidebarOpen: boolean, toggleS return (
- Styleshare Logo Style Share + + Styleshare Logo + Style Share diff --git a/admin/src/pages/Dashboard.tsx b/admin/src/pages/Dashboard.tsx index fecc359b..6103c632 100644 --- a/admin/src/pages/Dashboard.tsx +++ b/admin/src/pages/Dashboard.tsx @@ -8,6 +8,8 @@ import NewPosts from '../components/NewPosts'; const Dashboard = () => { const [sidebarOpen, setSidebarOpen] = useState(false); + document.title ="Style Share Admin | Dashboard 👨‍💻" + const toggleSidebar = () => { setSidebarOpen(!sidebarOpen); }; diff --git a/admin/src/pages/PageNotFound.tsx b/admin/src/pages/PageNotFound.tsx index 2354e30d..efd22751 100644 --- a/admin/src/pages/PageNotFound.tsx +++ b/admin/src/pages/PageNotFound.tsx @@ -2,7 +2,7 @@ import notfound from '../assets/notFound.png' const PageNotFound = () => { - document.title='Style Share | Nothing here 🫗' + document.title='Style Share Admin | Nothing here 🫗' return (
diff --git a/admin/src/pages/Posts.tsx b/admin/src/pages/Posts.tsx index 6a073c8f..9e4cbe81 100644 --- a/admin/src/pages/Posts.tsx +++ b/admin/src/pages/Posts.tsx @@ -5,6 +5,8 @@ import SideBar from "../components/SideBar"; const Posts = () => { const [sidebarOpen, setSidebarOpen] = useState(false); + document.title ="Style Share Admin | Manage Users Posts 📃" + const toggleSidebar = () => { setSidebarOpen(!sidebarOpen); }; diff --git a/admin/src/pages/Profile.tsx b/admin/src/pages/Profile.tsx index dd9338fa..574f013f 100644 --- a/admin/src/pages/Profile.tsx +++ b/admin/src/pages/Profile.tsx @@ -11,6 +11,8 @@ const Profile = () => { const setTokenState = useSetRecoilState(tokenState); const user = useRecoilValue(userState); + document.title ="Style Share Admin | My Profile 📷" + const handleLogout = () => { setTokenState(null); localStorage.removeItem("authToken"); diff --git a/admin/src/pages/Signin.tsx b/admin/src/pages/Signin.tsx index 7a1e62e4..25b26a56 100644 --- a/admin/src/pages/Signin.tsx +++ b/admin/src/pages/Signin.tsx @@ -21,7 +21,7 @@ const Signin = () => { const setTokenState = useSetRecoilState(tokenState); const navigate = useNavigate(); - document.title='Style Share | Login page 👋' + document.title='Style Share Admin | Login page 👋' const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); diff --git a/admin/src/pages/Users.tsx b/admin/src/pages/Users.tsx index 52e4ed0f..5434033a 100644 --- a/admin/src/pages/Users.tsx +++ b/admin/src/pages/Users.tsx @@ -12,6 +12,8 @@ const Users = () => { const [allUsers, setAllUsers] = useState([]); const token = useRecoilValue(tokenState); + document.title ="Style Share Admin | Manage Users 👥" + const toggleSidebar = () => { setSidebarOpen(!sidebarOpen); };