File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -158,16 +158,19 @@ export const TransactionChip = styled.div<TransactionChipProps>`
158158
159159interface ArrowDivProps {
160160 margin : string ;
161+ pointer ?: boolean ;
161162}
162163
163164export 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
173176export const ScriptText = styled . p `
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments