translate ProfileImage component text to Chinese
This commit is contained in:
@@ -16,24 +16,24 @@ function ProfileImage({userData}) {
|
|||||||
<div tabIndex={0} role="button" className="btn btn-ghost btn-circle avatar">
|
<div tabIndex={0} role="button" className="btn btn-ghost btn-circle avatar">
|
||||||
<div className="w-10 rounded-full">
|
<div className="w-10 rounded-full">
|
||||||
<img
|
<img
|
||||||
alt="Tailwind CSS Navbar component"
|
alt="用户头像"
|
||||||
src="https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.webp" />
|
src="https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.webp" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul
|
<ul
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
className="menu menu-sm dropdown-content bg-base-100 rounded-box z-[1] mt-3 w-52 p-2 shadow">
|
className="menu menu-sm dropdown-content bg-base-100 rounded-box z-[1] mt-3 w-52 p-2 shadow">
|
||||||
<li className='font-bold'><a >{userData?.username || "User"}</a></li>
|
<li className='font-bold'><a >{userData?.username || "用户"}</a></li>
|
||||||
<li>
|
<li>
|
||||||
<Link to={'/dashboard'} className="justify-between" >
|
<Link to={'/dashboard'} className="justify-between" >
|
||||||
Profile
|
个人资料
|
||||||
<span className="badge">New</span>
|
<span className="badge">新</span>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to={"/bookmark"} className="justify-between" >
|
<Link to={"/bookmark"} className="justify-between" >
|
||||||
Bookmarks
|
收藏
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li><a onClick={handleLogout}>Logout</a></li>
|
<li><a onClick={handleLogout}>退出登录</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user