-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Some ui updates & Header chain switch update
- Loading branch information
Showing
14 changed files
with
380 additions
and
290 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,5 @@ | ||
--- | ||
"@bnb-chain/canonical-bridge-widget": patch | ||
--- | ||
|
||
Some ui updates & Header chain switch update |
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
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
68 changes: 36 additions & 32 deletions
68
...es/canonical-bridge-widget/src/modules/transfer/components/ReceiveInfo/ReceiveLoading.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 |
---|---|---|
@@ -1,41 +1,45 @@ | ||
import { Flex, Skeleton, SkeletonCircle, useBreakpointValue } from '@bnb-chain/space'; | ||
import { Flex, Skeleton, SkeletonCircle } from '@bnb-chain/space'; | ||
|
||
export const ReceiveLoading = () => { | ||
const isBase = useBreakpointValue({ base: true, lg: false }) ?? false; | ||
|
||
return !isBase ? ( | ||
<Flex flexDir={'column'} gap={'8px'}> | ||
<Flex gap={'8px'} mb={'2px'}> | ||
<Skeleton height={'24px'} width={'160px'} /> | ||
<Skeleton height={'24px'} width={'80px'} /> | ||
</Flex> | ||
<Skeleton height={'12px'} maxW={'333px'} width={'100%'} /> | ||
<Skeleton height={'12px'} maxW={'371px'} width={'100%'} /> | ||
</Flex> | ||
) : ( | ||
<Flex flexDir={'row'} alignItems={'flex-start'} justifyContent={'space-between'} gap={'23px'}> | ||
<Flex flexDir={'column'} flex={1} gap={'8px'}> | ||
<Flex gap={'8px'} mb={'2px'} flexDir={'row'}> | ||
<Skeleton height={'12px'} flexBasis={'66%'} /> | ||
<Skeleton height={'12px'} flexBasis={'33%'} /> | ||
</Flex> | ||
return ( | ||
<> | ||
<Flex flexDir={'column'} gap={'8px'} display={{ base: 'none', lg: 'flex' }}> | ||
<Flex gap={'8px'} mb={'2px'}> | ||
<Skeleton height={'24px'} flexBasis={'66%'} /> | ||
<Skeleton height={'24px'} flexBasis={'33%'} /> | ||
<Skeleton height={'24px'} width={'160px'} /> | ||
<Skeleton height={'24px'} width={'80px'} /> | ||
</Flex> | ||
<Skeleton height={'12px'} maxW={'333px'} width={'100%'} /> | ||
<Skeleton height={'12px'} maxW={'371px'} width={'100%'} /> | ||
</Flex> | ||
<Flex | ||
display={{ base: 'flex', lg: 'none' }} | ||
flexDir={'row'} | ||
alignItems={'flex-start'} | ||
justifyContent={'space-between'} | ||
gap={'23px'} | ||
> | ||
<Flex flexDir={'column'} flex={1} gap={'8px'}> | ||
<Flex gap={'8px'} mb={'2px'} flexDir={'row'}> | ||
<Skeleton height={'12px'} flexBasis={'66%'} /> | ||
<Skeleton height={'12px'} flexBasis={'33%'} /> | ||
</Flex> | ||
<Flex gap={'8px'} mb={'2px'}> | ||
<Skeleton height={'24px'} flexBasis={'66%'} /> | ||
<Skeleton height={'24px'} flexBasis={'33%'} /> | ||
</Flex> | ||
|
||
<Flex gap={'8px'} mb={'2px'}> | ||
<Skeleton height={'16px'} width={'100%'} borderRadius={'4px'} /> | ||
</Flex> | ||
<Flex gap={'8px'} mb={'2px'}> | ||
<Skeleton height={'16px'} width={'100%'} borderRadius={'4px'} /> | ||
</Flex> | ||
<Flex gap={'8px'} mb={'2px'}> | ||
<Skeleton height={'16px'} width={'100%'} borderRadius={'4px'} /> | ||
<Flex gap={'8px'} mb={'2px'}> | ||
<Skeleton height={'16px'} width={'100%'} borderRadius={'4px'} /> | ||
</Flex> | ||
<Flex gap={'8px'} mb={'2px'}> | ||
<Skeleton height={'16px'} width={'100%'} borderRadius={'4px'} /> | ||
</Flex> | ||
<Flex gap={'8px'} mb={'2px'}> | ||
<Skeleton height={'16px'} width={'100%'} borderRadius={'4px'} /> | ||
</Flex> | ||
</Flex> | ||
<SkeletonCircle w={'32px'} h={'32px'} /> | ||
</Flex> | ||
|
||
<SkeletonCircle w={'32px'} h={'32px'} /> | ||
</Flex> | ||
</> | ||
); | ||
}; |
Oops, something went wrong.