Skip to content

Commit edc5f46

Browse files
author
slient-coder
committed
chore: clean test log
1 parent da7871b commit edc5f46

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

src/ui/components/InscriptionPreview/index.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ export interface InscriptionProps {
9292
onClick?: (data: any) => void;
9393
preset: Presets;
9494
asLogo?: boolean;
95+
hideValue?: boolean;
9596
}
9697

97-
export default function InscriptionPreview({ data, onClick, preset, asLogo }: InscriptionProps) {
98+
export default function InscriptionPreview({ data, onClick, preset, asLogo, hideValue }: InscriptionProps) {
9899
const date = new Date(data.timestamp * 1000);
99100
const time = getDateShowdate(date);
100101
const isUnconfirmed = date.getTime() < 100;
@@ -108,10 +109,13 @@ export default function InscriptionPreview({ data, onClick, preset, asLogo }: In
108109
if (asLogo) {
109110
return <Iframe preview={preview} style={$iframePresets[preset]} />;
110111
}
112+
113+
const valueText = `${data.outputValue} sats`;
114+
111115
return (
112116
<Column gap="zero" onClick={onClick} style={Object.assign({ position: 'relative' }, $containerPresets[preset])}>
113117
<Iframe preview={preview} style={$iframePresets[preset]} />
114-
{data.outputValue ? (
118+
{data.outputValue && !hideValue ? (
115119
<div style={Object.assign({ position: 'absolute', zIndex: 10 }, $iframePresets[preset])}>
116120
<Column fullY>
117121
<Row style={{ flex: 1 }} />
@@ -123,7 +127,7 @@ export default function InscriptionPreview({ data, onClick, preset, asLogo }: In
123127
}}>
124128
<div>
125129
<Text
126-
text={`${data.outputValue} sats`}
130+
text={valueText}
127131
size="xs"
128132
style={{
129133
backgroundColor: 'rgba(255,255,255,0.2)',

src/ui/components/SignPsbtWithRisksPopover/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export const SignPsbtWithRisksPopover = ({
7171
} else if (detailRisk.type === RiskType.LOW_FEE_RATE || detailRisk.type === RiskType.HIGH_FEE_RATE) {
7272
return <BadFeeRate decodedPsbt={decodedPsbt} risk={detailRisk} onClose={() => setDetailRisk(null)} />;
7373
} else if (detailRisk.type === RiskType.CHANGING_INSCRIPTION) {
74-
console.log('ChangingInscription2', decodedPsbt);
7574
return <ChangingInscription decodedPsbt={decodedPsbt} onClose={() => setDetailRisk(null)} />;
7675
} else if (detailRisk.type === RiskType.RUNES_BURNING) {
7776
return <RunesBurningList decodedPsbt={decodedPsbt} onClose={() => setDetailRisk(null)} />;

src/ui/pages/Approval/components/SignPsbt/index.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ function SignTxDetails({
269269
key={'inscription_' + index}
270270
data={inscription}
271271
preset="small"
272+
hideValue
272273
onClick={() => {
273274
window.open(inscription.preview);
274275
}}
@@ -453,7 +454,7 @@ function SignTxDetails({
453454
/>
454455
<Row overflowX gap="lg" justifyCenter style={{ width: 280 }} pb="lg">
455456
{sendingInscriptions.map((v) => (
456-
<InscriptionPreview key={v.inscriptionId} data={v} preset="small" />
457+
<InscriptionPreview key={v.inscriptionId} data={v} preset="small" hideValue />
457458
))}
458459
</Row>
459460
</Column>
@@ -945,6 +946,7 @@ export default function SignPsbt({
945946
key={w.inscriptionId}
946947
data={txInfo.decodedPsbt.inscriptions[w.inscriptionId]}
947948
preset="small"
949+
hideValue
948950
onClick={() => {
949951
window.open(txInfo.decodedPsbt.inscriptions[w.inscriptionId]?.preview);
950952
}}
@@ -1052,6 +1054,7 @@ export default function SignPsbt({
10521054
key={w.inscriptionId}
10531055
data={txInfo.decodedPsbt.inscriptions[w.inscriptionId]}
10541056
preset="small"
1057+
hideValue
10551058
onClick={() => {
10561059
window.open(txInfo.decodedPsbt.inscriptions[w.inscriptionId]?.preview);
10571060
}}

src/ui/pages/Cat20/SendCat20Screen.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ export default function SendCAT20Screen() {
183183
setStep(0);
184184
}}
185185
handleConfirm={async () => {
186-
console.log('step2');
187186
try {
188187
tools.showLoading(true);
189188
const step2 = await wallet.transferCAT20Step2(

src/ui/pages/Settings/AdvancedScreen.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ export default function AdvancedScreen() {
2929
const autoLockTimeId = useAutoLockTimeId();
3030
const lockTimeConfig = AUTO_LOCKTIMES[autoLockTimeId] || AUTO_LOCKTIMES[DEFAULT_LOCKTIME_ID];
3131

32-
console.log('autoLockTimeId', autoLockTimeId);
33-
3432
const currentAccount = useCurrentAccount();
3533

3634
const dispatch = useAppDispatch();

0 commit comments

Comments
 (0)