Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricevladimir committed Oct 24, 2023
1 parent b35ea7d commit 6274257
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 28 deletions.
48 changes: 22 additions & 26 deletions src/containers/votingTerminal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,39 +354,35 @@ export const VotingTerminal: React.FC<VotingTerminalProps> = ({
<>
<VoteContainer>
{isMultisigProposal ? (
<>
<div className="flex w-full flex-col gap-y-4">
<div className="flex w-full flex-col gap-x-4 gap-y-3 xl:flex-row">
{executableWithNextApproval && (
<ButtonText
label={t(
'transactionModal.multisig.ctaApproveExecute'
)}
size="large"
onClick={() => onApprovalClicked?.(true)}
className="w-full md:w-max"
disabled={voteNowDisabled}
/>
)}
<div className="flex w-full flex-col gap-y-4">
<div className="flex w-full flex-col gap-x-4 gap-y-3 xl:flex-row">
{executableWithNextApproval && (
<ButtonText
label={voteButtonLabel ?? ''}
label={t('transactionModal.multisig.ctaApproveExecute')}
size="large"
onClick={() => onApprovalClicked?.(false)}
onClick={() => onApprovalClicked?.(true)}
className="w-full md:w-max"
disabled={voteNowDisabled}
{...(executableWithNextApproval
? {mode: 'secondary', bgWhite: true}
: {mode: 'primary'})}
/>
</div>
{executableWithNextApproval && (
<AlertInline
label={t('votingTerminal.approveAndExecute.infoAlert')}
mode={'neutral'}
/>
)}
<ButtonText
label={voteButtonLabel ?? ''}
size="large"
onClick={() => onApprovalClicked?.(false)}
className="w-full md:w-max"
disabled={voteNowDisabled}
{...(executableWithNextApproval
? {mode: 'secondary', bgWhite: true}
: {mode: 'primary'})}
/>
</div>
</>
{executableWithNextApproval && (
<AlertInline
label={t('votingTerminal.approveAndExecute.infoAlert')}
mode={'neutral'}
/>
)}
</div>
) : (
<ButtonText
label={voteButtonLabel || t('votingTerminal.voteNow')}
Expand Down
2 changes: 1 addition & 1 deletion src/context/createProposal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ const CreateProposalWrapper: React.FC<Props> = ({
*************************************************/
const buttonLabels = {
[TransactionState.SUCCESS]: t('TransactionModal.goToProposal'),
[TransactionState.WAITING]: t('TransactionModal.createProposal'),
[TransactionState.WAITING]: t('TransactionModal.createProposalNow'),
};

if (daoDetailsLoading) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/proposeSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ const ProposeSettingWrapper: React.FC<Props> = ({
*************************************************/
const buttonLabels = {
[TransactionState.SUCCESS]: t('TransactionModal.goToProposal'),
[TransactionState.WAITING]: t('TransactionModal.createProposal'),
[TransactionState.WAITING]: t('TransactionModal.createProposalNow'),
};

if (daoDetailsLoading || tokenSupplyIsLoading) {
Expand Down

0 comments on commit 6274257

Please sign in to comment.