From edc94537b62c4993791f37d022be3a2051ab18f9 Mon Sep 17 00:00:00 2001 From: "l1.media" <31551045+traumschule@users.noreply.github.com> Date: Tue, 20 Dec 2022 13:21:52 +0000 Subject: [PATCH] Add InvitationLock tooltip on My Accounts (#3479) (#3878) Co-authored-by: Joystream Stats --- .../AccountItem/components/lockItems/InvitationLockItem.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/accounts/components/AccountItem/components/lockItems/InvitationLockItem.tsx b/packages/ui/src/accounts/components/AccountItem/components/lockItems/InvitationLockItem.tsx index 91907852cc..3e59f918ba 100644 --- a/packages/ui/src/accounts/components/AccountItem/components/lockItems/InvitationLockItem.tsx +++ b/packages/ui/src/accounts/components/AccountItem/components/lockItems/InvitationLockItem.tsx @@ -6,10 +6,14 @@ import { useGetMemberInvitedEventsQuery } from '@/memberships/queries' import { LockItem } from '../LockItem' import { LockDetailsProps } from '../types' +const tooltipLabel = + 'Invitation lock can be spent on transaction fees and staking for proposals, voting and working groups applications. JOY tokens subject to this lock cannot be transferred to any other accounts. This lock is unrecoverable. NB: Transaction fees will first be taken from your transferable balance if it is positive.' + export const InvitationLockItem = ({ lock, address, isRecoverable }: LockDetailsProps) => { const { data } = useGetMemberInvitedEventsQuery({ variables: { lockAccount: address } }) const eventData = data?.memberInvitedEvents[0] const createdInEvent = eventData && asBlock(eventData) + const recoveryInfo = { unrecoverableLabel: 'Unrecoverable', tooltipLabel } return ( ) }