fix: hide DM button when logged out
This commit is contained in:
1 parent
1486d95f89
commit
5d90e5c415
1 file changed
+2
@@ -24,6 +24,8 @@ export function DMButton() {
|
||||
return () => clearInterval(t);
|
||||
}, [currentUser]);
|
||||
|
||||
if (!currentUser) return null; // 未登录不显示私信按钮
|
||||
|
||||
return (
|
||||
<button
|
||||
className="nav-icon-btn"
|
||||
|
||||
Reference in new issue
Block a user