-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
f08afd4
commit 4321d94
Showing
15 changed files
with
3,622 additions
and
991 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,52 @@ | ||
import React from 'react'; | ||
import Skeleton from 'react-loading-skeleton'; | ||
import 'react-loading-skeleton/dist/skeleton.css'; | ||
|
||
export default function LoginActivitiesSkeleton() { | ||
// Define an array with unique keys | ||
const skeletonRows = [{ id: 'row-1' }, { id: 'row-2' }, { id: 'row-3' }]; | ||
|
||
return ( | ||
<div | ||
className="w-full p-4 overflow-auto" | ||
data-testid="login-activities-skeleton" | ||
> | ||
<table className="w-full table-fixed border border-gray-700 min-w-[600px]"> | ||
<thead className="bg-[#27167439] text-white"> | ||
<tr> | ||
<th className="p-4 border text-center w-1/6">Date</th> | ||
<th className="p-4 border text-center w-1/6">Country Name</th> | ||
<th className="p-4 border text-center w-1/6">City</th> | ||
<th className="p-4 border text-center w-1/6">State</th> | ||
<th className="p-4 border text-center w-1/6">IPV4</th> | ||
<th className="p-4 border text-center w-1/6">Attempt</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{skeletonRows.map((row) => ( | ||
<tr key={row.id}> | ||
<td className="py-2 px-4 border"> | ||
<Skeleton height={35} width="100%" /> | ||
</td> | ||
<td className="py-2 px-4 border"> | ||
<Skeleton height={35} width="100%" /> | ||
</td> | ||
<td className="py-2 px-4 border"> | ||
<Skeleton height={35} width="100%" /> | ||
</td> | ||
<td className="py-2 px-4 border"> | ||
<Skeleton height={35} width="100%" /> | ||
</td> | ||
<td className="py-2 px-4 border"> | ||
<Skeleton height={35} width="100%" /> | ||
</td> | ||
<td className="py-2 px-4 border"> | ||
<Skeleton height={35} width="100%" /> | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
</div> | ||
); | ||
} |
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.