My task page added
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
+2
-1
@@ -27,6 +27,7 @@ import RemindersPage from './views/RemindersPage';
|
|||||||
import TrackingPage from "./views/TrackingPage";
|
import TrackingPage from "./views/TrackingPage";
|
||||||
import CalendarPage from "./views/CalendarPage";
|
import CalendarPage from "./views/CalendarPage";
|
||||||
import ResourcePage from "./views/ResourcePage";
|
import ResourcePage from "./views/ResourcePage";
|
||||||
|
import MyTaskPage from "./views/MyTaskPage";
|
||||||
|
|
||||||
export default function Routers() {
|
export default function Routers() {
|
||||||
return (
|
return (
|
||||||
@@ -64,7 +65,7 @@ export default function Routers() {
|
|||||||
<Route exact path="/notification" element={<Notification />} />
|
<Route exact path="/notification" element={<Notification />} />
|
||||||
<Route exact path="/market-place" element={<MarketPlacePage />} />
|
<Route exact path="/market-place" element={<MarketPlacePage />} />
|
||||||
<Route exact path="/notification" element={<Notification />} />
|
<Route exact path="/notification" element={<Notification />} />
|
||||||
<Route exact path="/my-wallet" element={<MyWalletPage />} />
|
<Route exact path="/mytask" element={<MyTaskPage />} />
|
||||||
<Route
|
<Route
|
||||||
exact
|
exact
|
||||||
path="/my-collection/collection-item"
|
path="/my-collection/collection-item"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -136,6 +136,26 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) {
|
|||||||
</span>
|
</span>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</li>
|
</li>
|
||||||
|
<li className="item group">
|
||||||
|
<NavLink
|
||||||
|
to="/mytask"
|
||||||
|
className={`nav-item flex items-center ${
|
||||||
|
((navData) => (navData.isActive ? "active" : ""),
|
||||||
|
sidebar ? "justify-start space-x-3.5" : "justify-center")
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
<span className="item-icon group-hover:bg-purple group-hover:text-white w-8 h-8 flex justify-center items-center transition-all duration-300 ease-in-out bg-light-purple dark:bg-dark-light-purple rounded-full text-dark-gray dark:text-white dark:text-lighter-gray">
|
||||||
|
<Icons name="active-bids" />
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
className={`item-content relative group-hover:text-purple text-[18px] transition-all duration-300 ease-in-out text-lighter-gray font-medium ${
|
||||||
|
sidebar ? "active flex-1" : "w-0"
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
My Task(s)
|
||||||
|
</span>
|
||||||
|
</NavLink>
|
||||||
|
</li>
|
||||||
<li className="item group">
|
<li className="item group">
|
||||||
<NavLink
|
<NavLink
|
||||||
to="/notification"
|
to="/notification"
|
||||||
|
|||||||
@@ -7,15 +7,24 @@ class usersService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getHomeDate(){
|
getHomeDate(){
|
||||||
// localStorage.setItem("session_token", ``);
|
var postData = {
|
||||||
return this.postAuxEnd("/dashdata", null);
|
uuid: localStorage.getItem("uuid"),
|
||||||
|
member_id: localStorage.getItem("member_id"),
|
||||||
|
sessionid: localStorage.getItem("session_token")
|
||||||
|
};
|
||||||
|
return this.postAuxEnd("/dashdata", postData);
|
||||||
}
|
}
|
||||||
logInUser(reqData) {
|
logInUser(reqData) {
|
||||||
localStorage.setItem("session_token", ``);
|
localStorage.setItem("session_token", ``);
|
||||||
return this.postAuxEnd("/userlogin", reqData);
|
return this.postAuxEnd("/userlogin", reqData);
|
||||||
}
|
}
|
||||||
marketJobData(reqData) {
|
marketJobData(reqData) {
|
||||||
return this.postAuxEnd("/getjobsdata", reqData);
|
var postData = {
|
||||||
|
uuid: localStorage.getItem("uuid"),
|
||||||
|
member_id: localStorage.getItem("member_id"),
|
||||||
|
sessionid: localStorage.getItem("session_token")
|
||||||
|
};
|
||||||
|
return this.postAuxEnd("/getjobsdata", postData);
|
||||||
}
|
}
|
||||||
|
|
||||||
getApiGate(){
|
getApiGate(){
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import React from "react";
|
||||||
|
import MyTasks from "../components/MyTasks";
|
||||||
|
|
||||||
|
export default function MyTaskPage() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<MyTasks />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user