style : update style and components
Deskripsi: - update global - update division - update home - update project - update user - add component natification - add component reload No Issue
This commit is contained in:
29
src/module/_global/components/skeleton_avatar.tsx
Normal file
29
src/module/_global/components/skeleton_avatar.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Avatar } from '@mantine/core';
|
||||
import React from 'react';
|
||||
import bgIcon from "../../../../public/assets/img/avatar.png"
|
||||
|
||||
interface AvatarType {
|
||||
img: string
|
||||
size: string
|
||||
sizeNoImg: string
|
||||
}
|
||||
|
||||
export default function SkeletonAvatar({ img, size, sizeNoImg }: AvatarType) {
|
||||
return (
|
||||
<>
|
||||
{img == "" ?
|
||||
<Avatar
|
||||
size={sizeNoImg}
|
||||
radius={"100"}
|
||||
src={String(bgIcon)}
|
||||
/>
|
||||
:
|
||||
<Avatar
|
||||
size={size}
|
||||
radius={"100"}
|
||||
src={img}
|
||||
/>
|
||||
}
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user