-
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.
Merge pull request #221 from chain4travel/suite
Enhancements and Fixes: Routing Paths, Wallet Components, and Address Checksum
- Loading branch information
Showing
6 changed files
with
73 additions
and
52 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React, { useEffect, useRef } from 'react' | ||
// @ts-ignore | ||
import { Box } from '@mui/material' | ||
import { styled } from '@mui/material/styles' | ||
import { mountVerifyWalletSetting } from 'wallet/mountVerifyWalletSetting' | ||
|
||
const StyledBox = styled(Box)(({ theme }) => ({ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
width: '100%', | ||
height: '100%', | ||
'@media (max-width: 600px)': { | ||
justifyContent: 'flex-start', | ||
}, | ||
})) | ||
|
||
const LoadVerifyWalletSetting = () => { | ||
const ref = useRef(null) | ||
useEffect(() => { | ||
mountVerifyWalletSetting(ref.current) | ||
}, []) // eslint-disable-line react-hooks/exhaustive-deps | ||
|
||
return ( | ||
<StyledBox> | ||
<div ref={ref} /> | ||
</StyledBox> | ||
) | ||
} | ||
|
||
export default function VerifyWalletSetting() { | ||
return ( | ||
<React.Suspense fallback={<div>Loading...</div>}> | ||
<LoadVerifyWalletSetting /> | ||
</React.Suspense> | ||
) | ||
} |