-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixing teams cards --------- Co-authored-by: Igor IHIMBAZWE <[email protected]> Co-authored-by: Igor IHIMBAZWE <[email protected]>
- Loading branch information
1 parent
11c481b
commit 3d50556
Showing
5 changed files
with
140 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
import React from 'react'; | ||
|
||
interface SkeletonTableProps { | ||
columns: Array<any>; | ||
} | ||
|
||
function SkeletonTable({ columns }: SkeletonTableProps) { | ||
return ( | ||
<table className="min-w-full leading-normal"> | ||
<thead> | ||
<tr> | ||
{columns.map((column: any, index: React.Key | null | undefined) => ( | ||
<th key={column.id || column.name} className="px-6 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> | ||
<div className="h-4 bg-gray-300 rounded w-3/4" aria-label="Loading skeleton" /> | ||
</th> | ||
))} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{[...Array(5)].map((_, rowIndex:any) => ( | ||
<tr key={rowIndex.id || rowIndex.name}> | ||
{columns.map((_, colIndex:any) => ( | ||
<td key={colIndex.id || colIndex.name} className="px-6 py-4 border-b border-gray-200 bg-white text-sm"> | ||
<div className="h-4 bg-gray-300 rounded w-full" aria-label="Loading skeleton" /> | ||
</td> | ||
))} | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
); | ||
} | ||
|
||
export default SkeletonTable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters