mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 16:40:58 -05:00
Update UserIcon.tsx
This commit is contained in:
parent
af691be15c
commit
dfae11c204
1 changed files with 3 additions and 2 deletions
|
@ -14,10 +14,11 @@ import IconBase, { IconBaseProps } from "../IconBase";
|
||||||
import fallback from "../assets/user.png";
|
import fallback from "../assets/user.png";
|
||||||
import {VolumeMute} from "@styled-icons/boxicons-solid";
|
import {VolumeMute} from "@styled-icons/boxicons-solid";
|
||||||
|
|
||||||
|
type VoiceStatus = "muted" | "deaf";
|
||||||
interface Props extends IconBaseProps<User> {
|
interface Props extends IconBaseProps<User> {
|
||||||
mask?: string;
|
mask?: string;
|
||||||
status?: boolean;
|
status?: boolean;
|
||||||
voice?: string;
|
voice?: VoiceStatus;
|
||||||
showServerIdentity?: boolean;
|
showServerIdentity?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@ export function useStatusColour(user?: User) {
|
||||||
: theme["status-invisible"];
|
: theme["status-invisible"];
|
||||||
}
|
}
|
||||||
|
|
||||||
const VoiceIndicator = styled.div<{ status: string }>`
|
const VoiceIndicator = styled.div<{ status: VoiceStatus }>`
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
border-radius: var(--border-radius-half);
|
border-radius: var(--border-radius-half);
|
||||||
|
|
Loading…
Reference in a new issue