Updated on 2026-08-14
This commit is contained in:
parent
07e2b0afc7
commit
a029f8527c
3 changed files with 10 additions and 10 deletions
|
|
@ -46,14 +46,14 @@ sealed class Token(
|
|||
params = mapOf("Token" to type.value),
|
||||
)
|
||||
|
||||
sealed class Recieve(
|
||||
sealed class Receive(
|
||||
event: String,
|
||||
params: Map<String, String> = mapOf(),
|
||||
) : Token("Token / Recieve", event, params) {
|
||||
) : Token("Token / Receive", event, params) {
|
||||
|
||||
class ScreenOpened : Recieve("Recieve Screen Opened")
|
||||
class ButtonCopyAddress : Recieve("Button - Copy Address")
|
||||
class ButtonShareAddress : Recieve("Button - Share Address")
|
||||
class ScreenOpened : Receive("Receive Screen Opened")
|
||||
class ButtonCopyAddress : Receive("Button - Copy Address")
|
||||
class ButtonShareAddress : Receive("Button - Share Address")
|
||||
}
|
||||
|
||||
sealed class Send(
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class AddressInfoBottomSheetDialog(
|
|||
|
||||
override fun show() {
|
||||
super.show()
|
||||
Analytics.send(Token.Recieve.ScreenOpened())
|
||||
Analytics.send(Token.Receive.ScreenOpened())
|
||||
showData(data = stateDialog.addressData)
|
||||
}
|
||||
|
||||
|
|
@ -54,12 +54,12 @@ class AddressInfoBottomSheetDialog(
|
|||
imvQrCode.setImageBitmap(data.qrCode)
|
||||
tvAddress.text = data.address
|
||||
btnFlCopyAddress.setOnClickListener {
|
||||
Analytics.send(Token.Recieve.ButtonCopyAddress())
|
||||
Analytics.send(Token.Receive.ButtonCopyAddress())
|
||||
context.copyToClipboard(data.address)
|
||||
store.dispatchToastNotification(R.string.copy_toast_msg)
|
||||
}
|
||||
btnFlShare.setOnClickListener {
|
||||
Analytics.send(Token.Recieve.ButtonShareAddress())
|
||||
Analytics.send(Token.Receive.ButtonShareAddress())
|
||||
store.dispatchShare(data.shareUrl)
|
||||
}
|
||||
val blockchain = stateDialog.currency.blockchain
|
||||
|
|
|
|||
|
|
@ -249,12 +249,12 @@ class WalletMiddleware {
|
|||
}
|
||||
}
|
||||
is WalletAction.CopyAddress -> {
|
||||
Analytics.send(Token.Recieve.ButtonCopyAddress())
|
||||
Analytics.send(Token.Receive.ButtonCopyAddress())
|
||||
action.context.copyToClipboard(action.address)
|
||||
store.dispatch(WalletAction.CopyAddress.Success)
|
||||
}
|
||||
is WalletAction.ShareAddress -> {
|
||||
Analytics.send(Token.Recieve.ButtonShareAddress())
|
||||
Analytics.send(Token.Receive.ButtonShareAddress())
|
||||
action.context.shareText(action.address)
|
||||
}
|
||||
is WalletAction.ExploreAddress -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue