-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
src/pages/Votings/pages/VotingsList/components/VotingListCardSkeleton.tsx
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 { Divider, Skeleton, Stack, StackProps } from '@mui/material' | ||
|
||
import { UiIcon } from '@/ui' | ||
|
||
type Props = StackProps | ||
|
||
export default function VotingListCard({ ...rest }: Props) { | ||
return ( | ||
<Stack {...rest} spacing={6}> | ||
<Stack spacing={2}> | ||
<Skeleton width={48} /> | ||
<Skeleton /> | ||
<Skeleton /> | ||
</Stack> | ||
|
||
<Divider /> | ||
|
||
<Stack | ||
width='100%' | ||
direction='row' | ||
alignItems='center' | ||
justifyContent='space-between' | ||
spacing={2} | ||
> | ||
<Stack direction='row' spacing={2} alignItems='center'> | ||
<UiIcon componentName='calendarMonth' size={4} /> | ||
<Skeleton width={24} /> | ||
</Stack> | ||
</Stack> | ||
</Stack> | ||
) | ||
} |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export { default as VotingListCard } from './VotingListCard' | ||
export { default as VotingListCardSkeleton } from './VotingListCardSkeleton' |
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