@@ -92,9 +92,10 @@ export interface InscriptionProps {
92
92
onClick ?: ( data : any ) => void ;
93
93
preset : Presets ;
94
94
asLogo ?: boolean ;
95
+ hideValue ?: boolean ;
95
96
}
96
97
97
- export default function InscriptionPreview ( { data, onClick, preset, asLogo } : InscriptionProps ) {
98
+ export default function InscriptionPreview ( { data, onClick, preset, asLogo, hideValue } : InscriptionProps ) {
98
99
const date = new Date ( data . timestamp * 1000 ) ;
99
100
const time = getDateShowdate ( date ) ;
100
101
const isUnconfirmed = date . getTime ( ) < 100 ;
@@ -108,10 +109,13 @@ export default function InscriptionPreview({ data, onClick, preset, asLogo }: In
108
109
if ( asLogo ) {
109
110
return < Iframe preview = { preview } style = { $iframePresets [ preset ] } /> ;
110
111
}
112
+
113
+ const valueText = `${ data . outputValue } sats` ;
114
+
111
115
return (
112
116
< Column gap = "zero" onClick = { onClick } style = { Object . assign ( { position : 'relative' } , $containerPresets [ preset ] ) } >
113
117
< Iframe preview = { preview } style = { $iframePresets [ preset ] } />
114
- { data . outputValue ? (
118
+ { data . outputValue && ! hideValue ? (
115
119
< div style = { Object . assign ( { position : 'absolute' , zIndex : 10 } , $iframePresets [ preset ] ) } >
116
120
< Column fullY >
117
121
< Row style = { { flex : 1 } } />
@@ -123,7 +127,7 @@ export default function InscriptionPreview({ data, onClick, preset, asLogo }: In
123
127
} } >
124
128
< div >
125
129
< Text
126
- text = { ` ${ data . outputValue } sats` }
130
+ text = { valueText }
127
131
size = "xs"
128
132
style = { {
129
133
backgroundColor : 'rgba(255,255,255,0.2)' ,
0 commit comments