From f08afd4888777824e5d42e5cdf134aff5746c8b5 Mon Sep 17 00:00:00 2001 From: Grace UWICYEZA <124083824+UwicyezaG@users.noreply.github.com> Date: Thu, 24 Oct 2024 12:38:46 +0200 Subject: [PATCH] fix(#595):Improve the dark mode skeleton to match dark design (#598) --- src/Skeletons/InvitationCardSkeleton.tsx | 33 +++++++++++++++++++----- src/Skeletons/SkeletonTable.tsx | 27 +++++++++++++------ 2 files changed, 46 insertions(+), 14 deletions(-) diff --git a/src/Skeletons/InvitationCardSkeleton.tsx b/src/Skeletons/InvitationCardSkeleton.tsx index 94b1d8269..485cdcd35 100644 --- a/src/Skeletons/InvitationCardSkeleton.tsx +++ b/src/Skeletons/InvitationCardSkeleton.tsx @@ -4,17 +4,38 @@ import 'react-loading-skeleton/dist/skeleton.css'; function InvitationCardSkeleton() { return ( -
-
- +
+
+
- +
- + - +
); } diff --git a/src/Skeletons/SkeletonTable.tsx b/src/Skeletons/SkeletonTable.tsx index d1b99b984..3bb237570 100644 --- a/src/Skeletons/SkeletonTable.tsx +++ b/src/Skeletons/SkeletonTable.tsx @@ -1,4 +1,3 @@ - import React from 'react'; interface SkeletonTableProps { @@ -11,18 +10,30 @@ function SkeletonTable({ columns }: SkeletonTableProps) { {columns.map((column: any, index: React.Key | null | undefined) => ( - -
+ +
))} - {[...Array(5)].map((_, rowIndex:any) => ( + {[...Array(5)].map((_, rowIndex: any) => ( - {columns.map((_, colIndex:any) => ( - -
+ {columns.map((_, colIndex: any) => ( + +
))} @@ -32,4 +43,4 @@ function SkeletonTable({ columns }: SkeletonTableProps) { ); } -export default SkeletonTable; \ No newline at end of file +export default SkeletonTable;