Skip to content

Commit

Permalink
removed seperate logic for multisig proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
Barukimang committed Jul 25, 2024
1 parent 372e987 commit b5edf74
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions src/containers/votingTerminal/infoTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const InfoTab: React.FC<Props> = ({
preciseEndDate,
}) => {
const {t} = useTranslation();
const isMultisigProposal = minApproval != null && minApproval !== 0;

return (
<>
Expand Down Expand Up @@ -168,21 +167,13 @@ const InfoTab: React.FC<Props> = ({
<InfoLine className="items-start gap-x-4">
<p className="ft-text-base">{t('votingTerminal.endDate')}</p>
<EndDateWrapper className="w-[213px]">
{isMultisigProposal ? (
<p className="text-right font-semibold text-neutral-800 ft-text-base">
{t('votingTerminal.multisig.endDescription')}
</p>
) : (
<>
<Strong>{endDate}</Strong>
{preciseEndDate && (
<div className="flex justify-end gap-x-2">
<p className="text-right text-neutral-800 ft-text-sm">
{preciseEndDate}
</p>
</div>
)}
</>
<Strong>{endDate}</Strong>
{preciseEndDate && (
<div className="flex justify-end gap-x-2">
<p className="text-right text-neutral-800 ft-text-sm">
{preciseEndDate}
</p>
</div>
)}
</EndDateWrapper>
</InfoLine>
Expand Down

0 comments on commit b5edf74

Please sign in to comment.