Fix dashboard data requests, update dashboard data handling, change login field type, and redesign home button
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import Cookies from "js-cookie";
|
||||
import Image from "next/image";
|
||||
|
||||
function Head({ user }) {
|
||||
const userInfo = Cookies.get("userInfo");
|
||||
const parsedInfo = JSON.parse(userInfo);
|
||||
|
||||
return (
|
||||
<div className="w-full flex flex-row md:flex-col items-center justify-center md:justify-start gap-[12px] md:gap-[4px]">
|
||||
<Image
|
||||
@@ -11,8 +15,12 @@ function Head({ user }) {
|
||||
width={73}
|
||||
/>
|
||||
<div className="flex flex-col items-start md:items-center justify-center gap-[8px] md:gap-[4px]">
|
||||
<p className="text-[#3B3B3B] text-[14px] font-bold">{user.name}</p>
|
||||
<p className="text-[#7E7E7E] text-[14px] font-normal">{user.phone}</p>
|
||||
<p className="text-[#3B3B3B] text-[14px] font-bold">
|
||||
{parsedInfo.realName}
|
||||
</p>
|
||||
<p className="text-[#7E7E7E] text-[14px] font-normal">
|
||||
{parsedInfo.username}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user