Skip to content

Commit 8e9e96d

Browse files
committed
changed blue arrow color and show pointer only when the tx is spent
1 parent 8c108eb commit 8e9e96d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed
Lines changed: 1 addition & 1 deletion
Loading

packages/insight/src/assets/styles/transaction.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,19 @@ export const TransactionChip = styled.div<TransactionChipProps>`
158158

159159
interface ArrowDivProps {
160160
margin: string;
161+
pointer?: boolean;
161162
}
162163

163164
export const ArrowDiv = styled.div<ArrowDivProps>`
164165
width: 25px;
165166
position: relative;
166167
margin: ${({margin}) => margin};
167168
168-
img {
169-
cursor: pointer;
170-
}
169+
${({pointer}) => pointer &&
170+
`img {
171+
cursor: pointer;
172+
}
173+
`}
171174
`;
172175

173176
export const ScriptText = styled.p`

packages/insight/src/components/transaction-details.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const TransactionDetails: FC<TransactionDetailsProps> = ({
175175
marginTop: '1rem',
176176
...(showDetails && {borderBottom: '2px solid', paddingBottom: '0.25rem'})
177177
}}>
178-
<ArrowDiv margin='auto .5rem auto 0'>
178+
<ArrowDiv margin='auto .5rem auto 0' pointer>
179179
<img
180180
src={BlueArrowSvg}
181181
width={17}
@@ -274,7 +274,7 @@ const TransactionDetails: FC<TransactionDetailsProps> = ({
274274
)}
275275
<div style={{minInlineSize: 'fit-content', display: 'flex'}}>
276276
{getConvertedValue(vo.value, currency)} {currency}{' '}
277-
<ArrowDiv margin='auto 0 auto .5rem'>
277+
<ArrowDiv margin='auto 0 auto .5rem' pointer={vo.spentTxid}>
278278
<img
279279
src={vo.spentTxid ? BlueArrowSvg : (isOpReturn(vo) ? CircleSvg : ArrowSvg)}
280280
width={17}

0 commit comments

Comments
 (0)