ETransfer Content Component
Last updated
Last updated
If you want to quickly access the deposit, withdrawal and querying history functions, please use this UI component. You will get the same UI display and functions as the ETransfer app.
Deposit assets: The functionality is the same as ETransfer UI SDK Deposit Component.
Withdrawal assets: The functionality is the same as ETransfer UI SDK Withdraw Component.
Querying historical records: The functionality is the same as ETransfer UI SDK History Component.
Viewing transaction details: The functionality is the same as ETransfer UI SDK Transfer Detail Component.
Unread message reminder: If you have unread transaction records, an unread record reminder will be displayed on the sidebar or navigation menu.
Display User account address: Display the user's account address in the navigation header. You can also choose to hide it.
Jump to the ETransfer official website: Click the logo in the navigation header to jump to the ETransfer official website.
See More: Installation | ETransfer
For the ETransferConfig
, ETransferStyleProvider
, ETransferLayoutProvider
configuration used in the following examples, please refer to the ETransfer UI SDK Config
Field
Type
Required
Remarks
className
string
false
The additional class to ETransferContent.
componentStyle
ComponentStyle
false
Component style configuration items.
ComponentStyle.Mobile
is a UI that is better adapted to mobile size.
ComponentStyle.Web
is a UI that is better adapted to web size.
If you want to configure responsiveness, please switch the UI style at the appropriate time.
Default is ComponentStyle.Web.
isCanClickHeaderLogo
boolean
false
Is the logo in the header clickable?
Default is true.
isShowHeaderUserProfile
boolean
false
Whether to display user addresses in the mobile footer.
Default is true.
isShowMobileFooter
boolean
false
Whether to display social media links in the mobile footer.
Default is false.
isShowErrorTip
boolean
false
Whether to automatically pop up error prompt.
Default is true.
onClickHeaderLogo
function
false
Click event of the page header logo.
onLifeCycleChange
function
false
You can retrieve the current user's operation data within this method.
onLogin
()=>void
false
The wallet connection event.
Ensure that the network configuration (networkType
) , service URL (etransferUrl
) , authorization URL (etransferAuthUrl
) , socket URL (etransferSocketUrl
) and authorization (jwt
) are accurate.
Use a valid JWT token to ensure proper functionality.
To get ETransferConfig authorization.jwt
, you can read ETransfer SDK Auth
If you are using the message notification feature, please actively call @etransfer/ui-react
unsubscribeUserOrderRecord
method to cancel the WebSocket listener when logging out.
For more details and use cases, check out the github example code.
For any questions, please reach out to contact@etransfer.exchange.
The default method is to open in a new browser tab.