From 73c61cd7f87bb67d75962195efe77a27a6f55423 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 2 Jul 2021 18:56:00 +0100 Subject: [PATCH] Add i18n to incoming requests. Add icon stacking mask. --- external/lang | 2 +- src/components/common/user/UserIcon.tsx | 5 ++-- src/components/ui/Masks.tsx | 4 +++ .../intermediate/popovers/PendingRequests.tsx | 3 ++- src/pages/friends/Friend.module.scss | 5 ++++ src/pages/friends/Friends.tsx | 27 +++++++++++++------ 6 files changed, 34 insertions(+), 12 deletions(-) diff --git a/external/lang b/external/lang index dad00381..5cad406a 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit dad00381aaaafc1ab829816dffc31f0f37ee56a9 +Subproject commit 5cad406a2fb09d90803c5604d6f27701c3bf140b diff --git a/src/components/common/user/UserIcon.tsx b/src/components/common/user/UserIcon.tsx index 9d7bb801..724f042e 100644 --- a/src/components/common/user/UserIcon.tsx +++ b/src/components/common/user/UserIcon.tsx @@ -9,6 +9,7 @@ import { AppContext } from "../../../context/revoltjs/RevoltClient"; type VoiceStatus = "muted"; interface Props extends IconBaseProps { + mask?: string; status?: boolean; voice?: VoiceStatus; } @@ -52,7 +53,7 @@ import fallback from '../assets/user.png'; export default function UserIcon(props: Props & Omit, keyof Props>) { const client = useContext(AppContext); - const { target, attachment, size, voice, status, animate, children, as, ...svgProps } = props; + const { target, attachment, size, voice, status, animate, mask, children, as, ...svgProps } = props; const iconURL = client.generateFileURL(target?.avatar ?? attachment, { max_side: 256 }, animate) ?? (target ? client.users.getDefaultAvatarURL(target._id) : fallback); @@ -62,7 +63,7 @@ export default function UserIcon(props: Props & Omit