-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3378 from ever-co/feat/timesheet-skeleton-ui
Feat(timesheet): Add Skeleton Loader For Improved UI Feedback
- Loading branch information
Showing
2 changed files
with
37 additions
and
2 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
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,32 @@ | ||
import React from 'react' | ||
import Skeleton from './Skeleton' | ||
import { clsxm } from '@/app/utils' | ||
|
||
function TimesheetSkeleton() { | ||
return ( | ||
<div className={clsxm( | ||
'flex justify-between items-center w-full', | ||
'bg-[#ffffffcc] dark:bg-dark--theme rounded-md border', | ||
'border-gray-100 dark:border-gray-700 text-[#71717A] font-medium my-2 p-2 h-[50px] rounded-sm gap-x-2 px-2 py-2' | ||
)}> | ||
<div className='flex flex-col w-full gap-4'> | ||
<div className='flex items-center justify-between gap-4'> | ||
<Skeleton width={80} borderRadius={4} height={10} className="dark:bg-[#272930]" /> | ||
<Skeleton width={80} borderRadius={4} height={10} className="dark:bg-[#272930]" /> | ||
</div> | ||
<div className='flex items-center justify-between gap-4 w-full'> | ||
<div className='flex items-center gap-2'> | ||
<Skeleton width={20} borderRadius={4} height={20} className="dark:bg-[#272930]" /> | ||
<Skeleton width={200} borderRadius={4} height={20} className="dark:bg-[#272930]" /> | ||
<Skeleton width={40} borderRadius={4} height={20} className="dark:bg-[#272930]" /> | ||
</div> | ||
<div className='flex items-center gap-2'> | ||
<Skeleton width={200} borderRadius={4} height={20} className="dark:bg-[#272930]" /> | ||
<Skeleton width={200} borderRadius={4} height={20} className="dark:bg-[#272930]" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
export default TimesheetSkeleton |