mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 05:12:20 +00:00
rename
This commit is contained in:
@@ -11,7 +11,7 @@ interface AvatarProps {
|
|||||||
shadow?: boolean;
|
shadow?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCredentials(name: string, loginName: string) {
|
function getInitials(name: string, loginName: string) {
|
||||||
let credentials = "";
|
let credentials = "";
|
||||||
if (name) {
|
if (name) {
|
||||||
const split = name.split(" ");
|
const split = name.split(" ");
|
||||||
@@ -47,7 +47,7 @@ export function Avatar({
|
|||||||
shadow,
|
shadow,
|
||||||
}: AvatarProps) {
|
}: AvatarProps) {
|
||||||
const { resolvedTheme } = useTheme();
|
const { resolvedTheme } = useTheme();
|
||||||
const credentials = getCredentials(name ?? loginName, loginName);
|
const credentials = getInitials(name ?? loginName, loginName);
|
||||||
|
|
||||||
const color: ColorShade = getColorHash(loginName);
|
const color: ColorShade = getColorHash(loginName);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user