@@ -122,11 +119,7 @@ export function UserProfilePopout({ user, onClose, position }: UserProfilePopout
className="text-[16px] font-semibold leading-tight"
/>
- {domain ? (
-
- ) : (
- @{baseName}
- )}
+
{user.customStatus && (
diff --git a/packages/web/src/components/ui/Username.tsx b/packages/web/src/components/ui/Username.tsx
index 74e725ca..adcebe5e 100644
--- a/packages/web/src/components/ui/Username.tsx
+++ b/packages/web/src/components/ui/Username.tsx
@@ -3,21 +3,23 @@ import { Tooltip } from './Tooltip';
interface UsernameProps {
username: string;
+ showAt?: boolean;
className?: string;
style?: React.CSSProperties;
}
-export function Username({ username, className, style }: UsernameProps) {
+export function Username({ username, showAt, className, style }: UsernameProps) {
const atIndex = username.indexOf('@');
+ const prefix = showAt ? '@' : '';
if (atIndex === -1) {
- return {username};
+ return {prefix}{username};
}
const name = username.slice(0, atIndex);
const domain = username.slice(atIndex + 1);
return (
-
+
- {name}
+ {prefix}{name}
@{domain}