Skip to content

Commit

Permalink
fix(APP-2621): Proposal is missing exact expiry date/time for multisi…
Browse files Browse the repository at this point in the history
…g DAOs (#1391)
  • Loading branch information
Barukimang authored Jul 25, 2024
1 parent 372e987 commit 5fd18e9
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 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 @@ -167,22 +166,14 @@ const InfoTab: React.FC<Props> = ({
</InfoLine>
<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>
)}
</>
<EndDateWrapper>
<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 5fd18e9

Please sign in to comment.