ETransferContent Comonent
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 Comonent.
Querying historical records: The functionality is the same as ETransfer UI SDK History Comonent.
Viewing transaction details: The functionality is the same as ETransfer UI SDK Transfer Detail Comonent.
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 |
|
| The additional class to ETransferContent. |
componentStyle |
|
| Component style configuration items.
If you want to configure responsiveness, please switch the UI style at the appropriate time. Default is |
isCanClickHeaderLogo |
|
| Is the logo in the header clickable? Default is |
isShowHeaderUserProfile |
|
| Whether to display user addresses in the mobile footer. Default is |
isShowMobileFooter |
|
| Whether to display social media links in the mobile footer. Default is |
isShowErrorTip |
|
| Whether to automatically pop up error prompt. Default is |
onClickHeaderLogo |
|
| Click event of the page header logo. The default method is to open ETransfer Official Website in a new browser tab. |
onLifeCycleChange |
|
| You can retrieve the current user's operation data within this method. |
onLogin |
|
| 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.