Skip to content

Commit c0b48aa

Browse files
authored
Merge pull request #4013 from Emurgo/fix/YOEXT-1962-bis
fix: drep promotion banner location
2 parents 3f4d4ac + 344f44f commit c0b48aa

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/yoroi-extension/app/components/wallet/summary/WalletSummaryRevamp.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ import { ROUTES } from '../../../routes-config';
2727
import LocalStorageApi from '../../../api/localStorage';
2828
import type { WalletState } from '../../../../chrome/extension/background/types';
2929
import environment from '../../../environment';
30+
// $FlowIgnore: suppressing this error
31+
import { DrepPromotionBanner } from '../../../UI/components/DrepPromotionBanner/DrepPromotionBanner';
32+
import type { StoresMap } from '../../../stores';
3033

3134
const messages = defineMessages({
3235
transactionType: {
@@ -59,6 +62,7 @@ type Props = {|
5962
+emptyBannerComponent: Node,
6063
+goToRoute: ({| route: string, params?: Object, delegateToYoroiDrep?: null | boolean |}) => void,
6164
+selectedWallet: WalletState,
65+
+stores: StoresMap,
6266
|};
6367

6468
type State = {|
@@ -242,6 +246,7 @@ export default class WalletSummaryRevamp extends Component<Props, State> {
242246
openExportTxToFileDialog,
243247
shouldShowEmptyBanner,
244248
emptyBannerComponent,
249+
stores,
245250
} = this.props;
246251
const { intl } = this.context;
247252

@@ -297,6 +302,7 @@ export default class WalletSummaryRevamp extends Component<Props, State> {
297302
{this.renderPendingAmount(pendingAmount.outgoing, intl.formatMessage(messages.pendingOutgoingConfirmationLabel))}
298303
</Typography>
299304
</Box>
305+
<DrepPromotionBanner stores={stores} intl={intl} />
300306
<Box sx={{ display: 'flex', flexDirection: 'row', gap: '24px' }}>
301307
{this.renderBringBanner()}
302308
{this.renderUsdaBanner()}

packages/yoroi-extension/app/containers/wallet/Wallet.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import { PoolTransitionDialog } from './dialogs/pool-transition/PoolTransitionDi
1919
import { Redirect } from 'react-router';
2020
import type { StoresProps } from '../../stores';
2121
import semver from 'semver/preload';
22-
// $FlowIgnore: suppressing this error
23-
import { DrepPromotionBanner } from '../../UI/components/DrepPromotionBanner/DrepPromotionBanner';
2422

2523
type Props = {|
2624
+children: Node,
@@ -153,7 +151,6 @@ export default class Wallet extends Component<{| ...Props, ...StoresProps |}> {
153151
<WalletLoadingAnimation />
154152
) : (
155153
<>
156-
<DrepPromotionBanner stores={stores} intl={intl} />
157154
{this.props.children}
158155
{this.getDialogs(intl, currentPool)}
159156
</>

packages/yoroi-extension/app/containers/wallet/WalletSummaryPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export default class WalletSummaryPage extends Component<StoresProps> {
167167
return (
168168
<Box>
169169
<WalletSummaryRevamp
170+
stores={stores}
170171
pendingAmount={unconfirmedAmount}
171172
shouldHideBalance={profile.shouldHideBalance}
172173
isLoadingTransactions={

0 commit comments

Comments
 (0)