From 23f16b742ac881981e5128d8ad4e1ae79559e057 Mon Sep 17 00:00:00 2001 From: Olu Amey Date: Tue, 7 Feb 2023 09:14:01 -0500 Subject: [PATCH] My task page added --- public/favicon.ico | Bin 1150 -> 1150 bytes public/favicon.png | Bin 0 -> 1341 bytes src/Routers.jsx | 3 +- src/components/MyTasks/index.jsx | 1332 +++++++++++++++++++++++++++ src/components/Partials/Sidebar.jsx | 20 + src/services/UsersService.js | 15 +- src/views/MyTaskPage.jsx | 10 + 7 files changed, 1376 insertions(+), 4 deletions(-) create mode 100644 public/favicon.png create mode 100644 src/components/MyTasks/index.jsx create mode 100644 src/views/MyTaskPage.jsx diff --git a/public/favicon.ico b/public/favicon.ico index 5586ca0a0abd7b5ae5bf2ffcca1938961f88b581..cb11aa755aab54283742c6c5dc572eef9642a0ea 100644 GIT binary patch literal 1150 zcmcIkOHWf#5WXhvW#!t$js5`_5@R%I5CRB<3IQRNg{UAb#Lx$=2$XjSO4J}PA4HIZ zC_$s4rBLM6(psxc3I$r)()YW>#MS4V+h7Q?GBG!E&bf2$_swMHo6B)W=t)W8Xg$GI z9Oby<9LJp^BNus+e%d&W?u5sZ#=p}N+zH};S-=%Ig!?cb%OQY}JA|+&j3h3Ah&Qqi zPdK^{d871Q7(thR-(8T$dF&pzHk>?;@z^a}JSWfXi6G$c!eiZl&*ntf7ypB2@nV5E z#$UchcT*FOF)pn_ArV8XSwtfIlW?0bj&;E>q9AL5b#@XV;$++`mfPk=t5k|AVJQp? zTD%{9i;Chxj1CTAH~I_PUss@MFNR8%ftd$cSnRz6hfxQ=(~p=x2D9Ni%5t-jeLfY_ zlOHkC*N?NOPoiBWL%lVjt^NIipFB}JGRc>`fy z4jM&bZ0Z&$b^)}560G#qVzwzCwj~u3!Ch!RtN2p?}c;!>dMYXr@SuF13sGMTPOAgnZ7-tKSGR44H0hvo0zSJ7?llX1 zTibu>Z%^w?i(%3g>j^uDNL$I7@bkK7F?rn`(0_7flC!-3{MT$Bn905Wz`yRl0m;uu A4gdfE literal 1150 zcmZvaOH30{6oyYz!lOWK=}c!jZK2Wv@(R*O5DLhnwg@8#h+$zA5E2X$l|&&X%0q~n z7>&4*#Ar-Rz(6!S7b+SIDlPRZ?o>;*wi)f+1SX&%ZL}^*vciN%nL`qM*C=YV9mJ9qzM7 z{m(vniU;2NtH!_9HGW>NYh3Q3ivR!s diff --git a/public/favicon.png b/public/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..753ba6e2608d61391efa261e6ac9de7469085587 GIT binary patch literal 1341 zcmV-D1;YA?P)LXB}p5Yq)D7Ov7L)!JHE-f+U#>e zLeuF>A97-itYe+M_FjAKy(64fPKUU@Rgx~g4TtAAf*|1C_g*t8@Xy5xE&&W90g?XN z-7Z|$g(OMP6B#7zDDH5xGV1j;8Z)O$X*cRJWRwIPzNnVgELTnx(; z)%_U*B1;hC*0LS!A5?HghD!t{k;nVxDt7it=o3vxwHi8aYjL8$c37K#4?PX46E)3-Ypoa`liWni*^~&u~l;=FJQ_ zP)5Dpgqcf2mSseg2qiUurb<|x*3s;Focl_{##mB;LkX9d?3h|IsT9xp@kt%!$|35_ zCdNkd+)(-O2uZ`h=FTof)5qlaC{!}e92;VQXjtTYGl1Kpag=I(E)oVNxt@=FF3Xjq z>l#|^Hc#kosf@YzXVEM4DWWRn$41ZUlgB=C6s=+CmttqKv}_+bMY6WvMn((ss1%8S zeL9d$rxA;)6nYjG88LL77gCtK&zm`fC7FY2@i;li zR<#jXL^>X!0t^vF8Y)ej)75c&DqXOG@G&xyBdRhG#38=>;U_Bp0a65-NhLYh(jUt> zC|58ub%TnI_NZ2ZL2%v$Vqx4ZBVix0D?bzD-I4~wYd0L+sS(?lknqJ-->J+1Sk z-JE%kCp3|W!?tbo=_*W&A)C#RQv+TjtRt|5)_X1*U6(xfA<tfE<>Q&7`>_4%Nm*V{2JHWHR~zDd?At22Zd`bg>?F+3Z+T zOC}AB=5v^xndXJYk}0tSlP87oF(_&Tx)vvA;^ zNCFNT4nCPSs6ImHIbbg{g-lM2b6K|A9W2b>;d+mfd>8J_ajpe2JU@3Eou0+rG817u zxRt`G<-+y?Y7KNz2mNX>k6ZaTpA*8H6HS&S(!9WX3~K{S#;pIdIv9{-2h`F7x?c} /> } /> } /> - } /> + } /> { + setValue(value); + }; + return ( + +
+
+ {/* heading */} +
+
+

+ + My Tasks + + + 7 Days Notifications + + + All Notifications + +

+
+
+
filterHandler("today")} className="relative"> + + Today + + + 07 + +
+ filterHandler("days")} + className={`text-thin-light-gray text-18 cursor-pointer ${ + selectTab === "days" ? "text-purple" : "" + }`} + > + 7 days + + filterHandler("all")} + className={`text-thin-light-gray text-18 cursor-pointer ${ + selectTab === "all" ? "text-purple" : "" + }`} + > + All + +
+
+
+
    +
  • +
    +
    + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + You upload your frast product + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + + + +
    +
    +

    + Thank you ! + you made your frast sell + 232.98 ETH +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + You upload your frast product + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + + + +
    +
    +

    + Thank you ! + you made your frast sell + 232.98 ETH +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + You upload your frast product + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + + + +
    +
    +

    + Thank you ! + you made your frast sell + 232.98 ETH +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
+
+ + See all Notification + +
+
+
+
    +
  • +
    +
    + + + + + + +
    +
    +

    + You upload your frast product + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + + + +
    +
    +

    + Thank you ! + you made your frast sell + 232.98 ETH +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + You upload your frast product + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + + + +
    +
    +

    + Thank you ! + you made your frast sell + 232.98 ETH +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
+
+ + See all Notification + +
+
+
+
    +
  • +
    +
    + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + You upload your frast product + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + + + +
    +
    +

    + Thank you ! + you made your frast sell + 232.98 ETH +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + You upload your frast product + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + + + +
    +
    +

    + Thank you ! + you made your frast sell + 232.98 ETH +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + You upload your frast product + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + + + +
    +
    +

    + Thank you ! + you made your frast sell + 232.98 ETH +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
  • +
    +
    + + + + +
    +
    +

    + Your Account has been created + successfully done +

    +

    + 23 house ago +

    +
    +
    +
  • +
+
+ + See all Notification + +
+
+
+
+
+ ); +} diff --git a/src/components/Partials/Sidebar.jsx b/src/components/Partials/Sidebar.jsx index c3a33bb..cb45823 100644 --- a/src/components/Partials/Sidebar.jsx +++ b/src/components/Partials/Sidebar.jsx @@ -136,6 +136,26 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) { +
  • + (navData.isActive ? "active" : ""), + sidebar ? "justify-start space-x-3.5" : "justify-center") + }`} + > + + + + + My Task(s) + + +
  • + + + ); +}