Skip to content

Commit 12f8874

Browse files
committed
apply tooltip to more dialogs and remove redundant imports
1 parent 67478de commit 12f8874

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

source/renderer/app/components/staking/widgets/PoolPopOver.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useRef, useState } from 'react';
22
// @ts-ignore ts-migrate(2305) FIXME: Module '"react"' has no exported member 'Node'.
33
import type { Node } from 'react';
4-
import { PopOver } from 'react-polymorph/lib/components/PopOver';
54
import { STAKE_POOL_TOOLTIP_HOVER_WAIT } from '../../../config/timingConfig';
65
import StakePool from '../../../domains/StakePool';
76
import TooltipPool from './TooltipPool';

source/renderer/app/components/wallet/WalletCreateDialog.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { Input } from 'react-polymorph/lib/components/Input';
66
import { InputSkin } from 'react-polymorph/lib/skins/simple/InputSkin';
77
import { defineMessages, intlShape, FormattedHTMLMessage } from 'react-intl';
88
import vjf from 'mobx-react-form/lib/validators/VJF';
9-
import { PopOver } from 'react-polymorph/lib/components/PopOver';
109
import SVGInline from 'react-svg-inline';
1110
import ReactToolboxMobxForm, {
1211
handleFormErrors,

source/renderer/app/components/wallet/WalletRestoreDialog.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { Input } from 'react-polymorph/lib/components/Input';
77
import { defineMessages, intlShape, FormattedHTMLMessage } from 'react-intl';
88
import vjf from 'mobx-react-form/lib/validators/VJF';
99
import SVGInline from 'react-svg-inline';
10-
import { PopOver } from 'react-polymorph/lib/components/PopOver';
1110
import { PasswordInput } from '../widgets/forms/PasswordInput';
1211
import RadioSet from '../widgets/RadioSet';
1312
import ReactToolboxMobxForm, {

source/renderer/app/components/wallet/send-form/WalletSendAssetsConfirmationDialog.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Input } from 'react-polymorph/lib/components/Input';
44
import { InputSkin } from 'react-polymorph/lib/skins/simple/InputSkin';
55
import { Checkbox } from 'react-polymorph/lib/components/Checkbox';
66
import { CheckboxSkin } from 'react-polymorph/lib/skins/simple/CheckboxSkin';
7-
import { PopOver } from 'react-polymorph/lib/components/PopOver';
87
import { get } from 'lodash';
98
import BigNumber from 'bignumber.js';
109
import SVGInline from 'react-svg-inline';

source/renderer/app/components/wallet/settings/ChangeSpendingPasswordDialog.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { FORM_VALIDATION_DEBOUNCE_WAIT } from '../../../config/timingConfig';
2121
import { submitOnEnter } from '../../../utils/form';
2222
// @ts-ignore ts-migrate(2307) FIXME: Cannot find module '../../../assets/images/info-ic... Remove this comment to see the full error message
2323
import infoIconInline from '../../../assets/images/info-icon.inline.svg';
24+
import TopLevelPopOver from '../../widgets/TopLevelPopOver';
2425

2526
const messages = defineMessages({
2627
dialogTitleSetPassword: {
@@ -290,12 +291,12 @@ class ChangeSpendingPasswordDialog extends Component<Props> {
290291
{...currentPasswordField.bind()}
291292
onKeyPress={this.handleSubmitOnEnter}
292293
/>
293-
<PopOver
294+
<TopLevelPopOver
294295
content={<FormattedHTMLMessage {...messages.passwordTooltip} />}
295296
key="tooltip"
296297
>
297298
<SVGInline svg={infoIconInline} className={styles.infoIcon} />
298-
</PopOver>
299+
</TopLevelPopOver>
299300
</div>
300301
)}
301302

source/renderer/app/components/wallet/wallet-import/WalletSelectImportDialog.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
import { observer } from 'mobx-react';
99
import { ButtonSkin } from 'react-polymorph/lib/skins/simple/ButtonSkin';
1010
import { Button } from 'react-polymorph/lib/components/Button';
11-
import { PopOver } from 'react-polymorph/lib/components/PopOver';
1211
import { CheckboxSkin } from 'react-polymorph/lib/skins/simple/CheckboxSkin';
1312
import { Checkbox } from 'react-polymorph/lib/components/Checkbox';
1413
import { Link } from 'react-polymorph/lib/components/Link';
@@ -217,7 +216,7 @@ class WalletSelectImportDialog extends Component<Props> {
217216

218217
if (disabled) {
219218
statusIcon = (
220-
<PopOver
219+
<TopLevelPopOver
221220
content={
222221
invalidWalletName ? (
223222
this.context.intl.formatMessage(messages.enterWalletNameTooltip)
@@ -234,7 +233,7 @@ class WalletSelectImportDialog extends Component<Props> {
234233
placement={isOpeningUpward ? 'top' : 'bottom'}
235234
>
236235
{statusIcon}
237-
</PopOver>
236+
</TopLevelPopOver>
238237
);
239238
}
240239
} else if (wallet.import.status === WalletImportStatuses.RUNNING) {

0 commit comments

Comments
 (0)