-
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.
fix: undo previous overview and remove permissions from modal
- Loading branch information
1 parent
7324522
commit d808b86
Showing
6 changed files
with
90 additions
and
23 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
...als/PaymentBuilder/partials/FinalizeByPaymentCreatorInfo/FinalizeByPaymentCreatorInfo.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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import React, { type FC } from 'react'; | ||
import { defineMessages } from 'react-intl'; | ||
|
||
import { formatText } from '~utils/intl.ts'; | ||
import MenuWithStatusText from '~v5/shared/MenuWithStatusText/index.ts'; | ||
import { StatusTypes } from '~v5/shared/StatusText/consts.ts'; | ||
import StatusText from '~v5/shared/StatusText/StatusText.tsx'; | ||
import UserPopover from '~v5/shared/UserPopover/UserPopover.tsx'; | ||
|
||
import { type FinalizeByPaymentCreatorInfoProps } from './types.ts'; | ||
|
||
const displayName = | ||
'v5.common.CompletedAction.partials.PaymentBuilder.partials.FinalizeByPaymentCreatorInfo'; | ||
|
||
const MSG = defineMessages({ | ||
info: { | ||
id: `${displayName}.info`, | ||
defaultMessage: 'Payment creator released the payment.', | ||
}, | ||
overview: { | ||
id: `${displayName}.overview`, | ||
defaultMessage: 'Overview', | ||
}, | ||
member: { | ||
id: `${displayName}.member`, | ||
defaultMessage: 'Member', | ||
}, | ||
}); | ||
|
||
const FinalizeByPaymentCreatorInfo: FC<FinalizeByPaymentCreatorInfoProps> = ({ | ||
userAdddress, | ||
}) => { | ||
return ( | ||
<MenuWithStatusText | ||
statusText={ | ||
<StatusText | ||
status={StatusTypes.Info} | ||
textClassName="text-4 text-gray-900" | ||
iconAlignment="top" | ||
iconSize={16} | ||
iconClassName="text-gray-500" | ||
> | ||
{formatText(MSG.info)} | ||
</StatusText> | ||
} | ||
sections={[ | ||
{ | ||
key: '1', | ||
content: ( | ||
<> | ||
<h4 className="text-1">{formatText(MSG.overview)}</h4> | ||
{userAdddress && ( | ||
<div className="mt-2 flex items-center justify-between gap-2"> | ||
<span className="text-sm text-gray-600"> | ||
{formatText(MSG.member)} | ||
</span> | ||
<div> | ||
<UserPopover size={18} walletAddress={userAdddress || ''} /> | ||
</div> | ||
</div> | ||
)} | ||
</> | ||
), | ||
}, | ||
]} | ||
/> | ||
); | ||
}; | ||
|
||
export default FinalizeByPaymentCreatorInfo; |
3 changes: 3 additions & 0 deletions
3
...on/CompletedAction/partials/PaymentBuilder/partials/FinalizeByPaymentCreatorInfo/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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface FinalizeByPaymentCreatorInfoProps { | ||
userAdddress: string | undefined | null; | ||
} |
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