mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 05:24:55 +03:00
feat: use Avatar component and remove non null assertion
This commit is contained in:
parent
56fabb2881
commit
15f721ac39
@ -8,13 +8,6 @@ export const form = style({
|
|||||||
gap: `${SPACING_UNIT}px`,
|
gap: `${SPACING_UNIT}px`,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const blockedUserAvatar = style({
|
|
||||||
width: "32px",
|
|
||||||
height: "32px",
|
|
||||||
borderRadius: "4px",
|
|
||||||
filter: "grayscale(100%)",
|
|
||||||
});
|
|
||||||
|
|
||||||
export const blockedUser = style({
|
export const blockedUser = style({
|
||||||
display: "flex",
|
display: "flex",
|
||||||
minWidth: "240px",
|
minWidth: "240px",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Button, SelectField } from "@renderer/components";
|
import { Avatar, Button, SelectField } from "@renderer/components";
|
||||||
import { SPACING_UNIT } from "@renderer/theme.css";
|
import { SPACING_UNIT } from "@renderer/theme.css";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
@ -201,10 +201,11 @@ export function SettingsAccount() {
|
|||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<Avatar
|
||||||
src={user.profileImageUrl!}
|
style={{ filter: "grayscale(100%)" }}
|
||||||
|
size={32}
|
||||||
|
src={user.profileImageUrl}
|
||||||
alt={user.displayName}
|
alt={user.displayName}
|
||||||
className={styles.blockedUserAvatar}
|
|
||||||
/>
|
/>
|
||||||
<span>{user.displayName}</span>
|
<span>{user.displayName}</span>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user