File tree Expand file tree Collapse file tree 1 file changed +27
-15
lines changed
apps/explorer/src/components/Receipt Expand file tree Collapse file tree 1 file changed +27
-15
lines changed Original file line number Diff line number Diff line change @@ -31,24 +31,36 @@ export function Receipt(props: Receipt.Props) {
3131 < div className = "flex flex-col gap-[8px] font-mono text-[13px] leading-[16px] flex-1" >
3232 < div className = "flex justify-between items-end" >
3333 < span className = "text-tertiary capitalize" > Block</ span >
34- < Link
35- to = { '/block/$id' }
36- params = { { id : Hex . fromNumber ( blockNumber ) } }
37- className = "text-accent text-right before:content-['#'] press-down"
38- >
39- { String ( blockNumber ) }
40- </ Link >
34+ { framed ? (
35+ < span className = "text-accent text-right before:content-['#']" >
36+ { String ( blockNumber ) }
37+ </ span >
38+ ) : (
39+ < Link
40+ to = { '/block/$id' }
41+ params = { { id : Hex . fromNumber ( blockNumber ) } }
42+ className = "text-accent text-right before:content-['#'] press-down"
43+ >
44+ { String ( blockNumber ) }
45+ </ Link >
46+ ) }
4147 </ div >
4248 < div className = "flex justify-between items-end" >
4349 < span className = "text-tertiary capitalize" > Sender</ span >
44- < Link
45- to = { '/account/$address' }
46- params = { { address : sender } }
47- className = "text-accent text-right press-down"
48- title = { sender }
49- >
50- { HexFormatter . shortenHex ( sender ) }
51- </ Link >
50+ { framed ? (
51+ < span className = "text-accent text-right" title = { sender } >
52+ { HexFormatter . shortenHex ( sender ) }
53+ </ span >
54+ ) : (
55+ < Link
56+ to = { '/account/$address' }
57+ params = { { address : sender } }
58+ className = "text-accent text-right press-down"
59+ title = { sender }
60+ >
61+ { HexFormatter . shortenHex ( sender ) }
62+ </ Link >
63+ ) }
5264 </ div >
5365 < div className = "flex justify-between items-start" >
5466 < div className = "relative" >
You can’t perform that action at this time.
0 commit comments