-
Notifications
You must be signed in to change notification settings - Fork 15
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 #2892 from JoinColony/fix/2733-liquidation-address…
…-recipient Crypto-to-fiat: Payments to liquidation address should show relevant member
- Loading branch information
Showing
16 changed files
with
106 additions
and
134 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
23 changes: 20 additions & 3 deletions
23
...ls/PaymentBuilder/partials/PaymentBuilderTable/partials/RecipientField/RecipientField.tsx
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 |
---|---|---|
@@ -1,11 +1,28 @@ | ||
import React, { type FC } from 'react'; | ||
|
||
import useUserByAddress from '~hooks/useUserByAddress.ts'; | ||
import UserPopover from '~v5/shared/UserPopover/UserPopover.tsx'; | ||
|
||
import { type RecipientFieldProps } from './types.ts'; | ||
|
||
const RecipientField: FC<RecipientFieldProps> = ({ address }) => ( | ||
<UserPopover size={18} walletAddress={address} withVerifiedBadge /> | ||
); | ||
const RecipientField: FC<RecipientFieldProps> = ({ address, isLoading }) => { | ||
const { user, loading: isUserLoading } = useUserByAddress(address, true); | ||
|
||
if (isLoading || isUserLoading) { | ||
return ( | ||
<div className="flex w-full items-center"> | ||
<div className="h-4 w-full overflow-hidden rounded skeleton" /> | ||
</div> | ||
); | ||
} | ||
|
||
return ( | ||
<UserPopover | ||
size={18} | ||
walletAddress={user?.walletAddress ?? address} | ||
withVerifiedBadge | ||
/> | ||
); | ||
}; | ||
|
||
export default RecipientField; |
1 change: 1 addition & 0 deletions
1
...ion/partials/PaymentBuilder/partials/PaymentBuilderTable/partials/RecipientField/types.ts
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export interface RecipientFieldProps { | ||
address: string; | ||
isLoading: boolean; | ||
} |
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
Oops, something went wrong.