-
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 * fixing teams cards --------- Co-authored-by: Igor IHIMBAZWE <[email protected]>
- Loading branch information
1 parent
8448da6
commit e9f7ee5
Showing
10 changed files
with
158 additions
and
115 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,36 @@ | ||
/* eslint-disable react/no-array-index-key */ | ||
/* eslint-disable react/prop-types */ | ||
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={index} 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"></div> | ||
</th> | ||
))} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{[...Array(5)].map((_, rowIndex) => ( | ||
<tr key={rowIndex}> | ||
{columns.map((_, colIndex) => ( | ||
<td key={colIndex} className="px-6 py-4 border-b border-gray-200 bg-white text-sm"> | ||
<div className="h-4 bg-gray-300 rounded w-full"></div> | ||
</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
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
Oops, something went wrong.