Skip to content

Commit 7cc890b

Browse files
fix(bridge): fix actionBar
1 parent 8a19529 commit 7cc890b

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

src/pages/teleport/bridge/actionBar.bridge.tsx

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
import { useState, useCallback } from 'react';
2-
import {
3-
ActionBar as ActionBarContainer,
4-
Pane,
5-
Button,
6-
} from '@cybercongress/gravity';
72
import { MsgTransfer } from 'cosmjs-types/ibc/applications/transfer/v1/tx';
83
import Long from 'long';
94
import BigNumber from 'bignumber.js';
@@ -15,11 +10,8 @@ import {
1510
SigningStargateClient,
1611
} from '@cosmjs/stargate';
1712
import { DEFAULT_GAS_LIMITS } from 'src/constants/config';
18-
import {
19-
ActionBarContentText,
20-
LinkWindow,
21-
ActionBar as ActionBarCenter,
22-
} from '../../../components';
13+
import { getNowUtcNumber } from 'src/utils/date';
14+
import { LinkWindow, ActionBar as ActionBarCenter } from '../../../components';
2315
import { LEDGER } from '../../../utils/config';
2416
import {
2517
fromBech32,
@@ -31,7 +23,6 @@ import networks from '../../../utils/networkListIbc';
3123
import { TxsType, TypeTxsT } from '../type';
3224
import ActionBarPingTxs from '../components/actionBarPingTxs';
3325
import { useIbcHistory } from '../../../features/ibc-history/historyContext';
34-
import { getNowUtcNumber } from 'src/utils/date';
3526

3627
const { STAGE_INIT, STAGE_ERROR, STAGE_SUBMITTED } = LEDGER;
3728

@@ -259,15 +250,12 @@ function ActionBar({ stateActionBar }: { stateActionBar: Props }) {
259250

260251
if (stage === STAGE_CONFIRMED_IBC) {
261252
return (
262-
<ActionBarContainer>
263-
<ActionBarContentText display="inline">
264-
<Pane display="inline">Transaction Successful: </Pane>{' '}
253+
<ActionBarCenter button={{ text: 'Fuck Google', onClick: clearState }}>
254+
<span>
255+
Transaction Successful:{' '}
265256
<LinkWindow to={linkIbcTxs}>{trimString(txHashIbc, 6, 6)}</LinkWindow>
266-
</ActionBarContentText>
267-
<Button marginX={10} onClick={clearState}>
268-
Fuck Google
269-
</Button>
270-
</ActionBarContainer>
257+
</span>
258+
</ActionBarCenter>
271259
);
272260
}
273261

0 commit comments

Comments
 (0)