Skip to content

Commit 213bc80

Browse files
committedDec 23, 2024
refactor(web): date-placement
1 parent d3642da commit 213bc80

File tree

1 file changed

+6
-12
lines changed
  • web/src/pages/Cases/CaseDetails/Voting/VotesDetails

1 file changed

+6
-12
lines changed
 

‎web/src/pages/Cases/CaseDetails/Voting/VotesDetails/index.tsx

+6-12
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ const SecondaryTextLabel = styled.label`
9595
font-size: 16px;
9696
`;
9797

98-
const StyledExternalLink = styled(ExternalLink)`
99-
font-size: 16px;
100-
`;
101-
10298
const AccordionContent: React.FC<{
10399
choice?: string;
104100
answers: Answer[];
@@ -118,19 +114,17 @@ const AccordionContent: React.FC<{
118114
<SecondaryTextLabel>{getVoteChoice(parseInt(choice), answers)}</SecondaryTextLabel>
119115
</div>
120116
)}
121-
{!isUndefined(timestamp) && (
122-
<div>
123-
<StyledLabel>Date:&nbsp;</StyledLabel>
124-
<StyledExternalLink to={transactionExplorerLink} rel="noopener noreferrer" target="_blank">
125-
{formatDate(Number(timestamp), true)}
126-
</StyledExternalLink>
127-
</div>
128-
)}
117+
129118
{justification ? (
130119
<JustificationText>{justification}</JustificationText>
131120
) : (
132121
<SecondaryTextLabel>No justification provided</SecondaryTextLabel>
133122
)}
123+
{!isUndefined(timestamp) && (
124+
<ExternalLink to={transactionExplorerLink} rel="noopener noreferrer" target="_blank">
125+
{formatDate(Number(timestamp), true)}
126+
</ExternalLink>
127+
)}
134128
</AccordionContentContainer>
135129
);
136130
};

0 commit comments

Comments
 (0)