Teams skeleton loader (#3148)

* Teams skeleton loader

* [id] skeleton

* Fix mt

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
sean-brydonandPeer Richelsen authored and GitHub committed 2022-06-25 00:44:49 +02:00
1 parent 643b46aa8f
commit 13b5618a71
4 files changed
+184 -113

No files matched your search

+3 -3
View File
@@ -8,8 +8,8 @@ type SkeletonBaseProps = {
interface AvatarProps extends SkeletonBaseProps {
// Limit this cause we don't use avatars bigger than thi
width: "2" | "3" | "4" | "5" | "6" | "8";
height: "2" | "3" | "4" | "5" | "6" | "8";
width: "2" | "3" | "4" | "5" | "6" | "8" | "12";
height: "2" | "3" | "4" | "5" | "6" | "8" | "12";
}
interface SkeletonContainer {
@@ -24,7 +24,7 @@ const SkeletonAvatar: React.FC<AvatarProps> = ({ width, height }) => {
};
const SkeletonText: React.FC<SkeletonBaseProps> = ({ width, height }) => {
return <div className={`rounded-md bg-gray-200 w-${width} h-${height} ${classNames}`} />;
return <div className={classNames(`rounded-md bg-gray-200 w-${width} h-${height}`, classNames)} />;
};
const SkeletonButton: React.FC<SkeletonBaseProps> = ({ width, height }) => {