-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support withdrawal claim from any wallet #2138
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
const { chain } = useNetwork() | ||
const { switchNetworkAsync } = useSwitchNetworkWithConfig() | ||
const networkName = getNetworkName(chain?.id ?? 0) | ||
const { sanitizedAddress } = useTransactionHistoryAddressStore() | ||
|
||
const viewingAnotherAddress = | ||
connectedAddress && | ||
sanitizedAddress && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Wouldn't it be better to rename the addresses to searchedAddress
and connectedAddress
, since that's more apt?
sanitizedAddress && | ||
connectedAddress && | ||
sanitizedAddress.toLowerCase() !== connectedAddress.toLowerCase() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace it with viewingAnotherAddress
packages/arb-token-bridge-ui/src/components/TransactionHistory/TransactionsTableRowAction.tsx
Show resolved
Hide resolved
const { sanitizedAddress: searchedAddress } = | ||
useTransactionHistoryAddressStore() | ||
|
||
const viewingAnotherAddress = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const viewingAnotherAddress = | |
const isViewingAnotherAddress = |
Closes FS-1036