forked from abner/for-legacy-web
Server Sidebar: Add home icon hover.
Home Sidebar: Remove top bar.
This commit is contained in:
@@ -5,12 +5,12 @@ import { Text } from "preact-i18n";
|
||||
import Tooltip from "../Tooltip";
|
||||
|
||||
interface Props {
|
||||
user: User;
|
||||
user?: User;
|
||||
tooltip?: boolean;
|
||||
}
|
||||
|
||||
export default function UserStatus({ user, tooltip }: Props) {
|
||||
if (user.online) {
|
||||
if (user?.online) {
|
||||
if (user.status?.text) {
|
||||
if (tooltip) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user