Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import { useContextApi } from "next-common/context/api";
import Signer from "next-common/components/popup/fields/signerField";
import { useCallback, useEffect, useState } from "react";
Expand Down Expand Up @@ -126,13 +125,11 @@ function ModifyNomineesPopupContent() {

export default function ModifyNomineesPopup({ onClose, startNominating }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup
title={startNominating ? "Start Nominating" : "Modify Nominees"}
onClose={onClose}
>
<ModifyNomineesPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner
title={startNominating ? "Start Nominating" : "Modify Nominees"}
onClose={onClose}
>
<ModifyNomineesPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import TxSubmissionButton from "next-common/components/common/tx/txSubmissionButton";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import { useContextApi } from "next-common/context/api";
import { useChainSettings } from "next-common/context/chain";
import { useState } from "react";
Expand Down Expand Up @@ -68,10 +67,8 @@ function BondPopupContent() {

export default function BondPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Bond Extra" onClose={onClose}>
<BondPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Bond Extra" onClose={onClose}>
<BondPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { useTxBuilder } from "next-common/hooks/useTxBuilder";
import { useChainSettings } from "next-common/context/chain";
import { toPrecision } from "next-common/utils";
import TxSubmissionButton from "next-common/components/common/tx/txSubmissionButton";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import Signer from "next-common/components/popup/fields/signerField";
import SecondaryButton from "next-common/lib/button/secondary";
import AdvanceSettings from "next-common/components/summary/newProposalQuickStart/common/advanceSettings";
Expand Down Expand Up @@ -172,10 +171,8 @@ function ClaimPopupContent() {

export default function ClaimPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Claim Rewards" onClose={onClose}>
<ClaimPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Claim Rewards" onClose={onClose}>
<ClaimPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import TxSubmissionButton from "next-common/components/common/tx/txSubmissionButton";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import Signer from "next-common/components/popup/fields/signerField";
import { useContextApi } from "next-common/context/api";
import { useState, useEffect, useMemo } from "react";
Expand Down Expand Up @@ -200,10 +199,8 @@ function PayeePopupContent() {

export default function PayeePopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Set Payee Destination" onClose={onClose}>
<PayeePopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Set Payee Destination" onClose={onClose}>
<PayeePopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import EstimatedGas from "next-common/components/estimatedGas";
import BalanceField from "next-common/components/popup/fields/balanceField";
import Signer from "next-common/components/popup/fields/signerField";
import TextInputField from "next-common/components/popup/fields/textInputField";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import { InfoMessage } from "next-common/components/setting/styled";
import AdvanceSettings from "next-common/components/summary/newProposalQuickStart/common/advanceSettings";
import { useContextApi } from "next-common/context/api";
Expand Down Expand Up @@ -77,10 +76,8 @@ function StopNominatingPopupContent() {

export default function StopNominationPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Stop Nominating" onClose={onClose}>
<StopNominatingPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Stop Nominating" onClose={onClose}>
<StopNominatingPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import TxSubmissionButton from "next-common/components/common/tx/txSubmissionButton";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import Signer from "next-common/components/popup/fields/signerField";
import { useContextApi } from "next-common/context/api";
import { useChainSettings } from "next-common/context/chain";
Expand Down Expand Up @@ -101,10 +100,8 @@ function UnBondPopupContent() {

export default function UnBondPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Unbond" onClose={onClose}>
<UnBondPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Unbond" onClose={onClose}>
<UnBondPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import { useContextApi } from "next-common/context/api";
import useRealAddress from "next-common/utils/hooks/useRealAddress";
import Signer from "next-common/components/popup/fields/signerField";
Expand Down Expand Up @@ -169,10 +168,8 @@ function StartNominatingPopupContent() {

export default function StartNominatingPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Start Nominating" onClose={onClose}>
<StartNominatingPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Start Nominating" onClose={onClose}>
<StartNominatingPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import TxSubmissionButton from "next-common/components/common/tx/txSubmissionBut
import EstimatedGas from "next-common/components/estimatedGas";
import BalanceField from "next-common/components/popup/fields/balanceField";
import Signer from "next-common/components/popup/fields/signerField";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import AdvanceSettings from "next-common/components/summary/newProposalQuickStart/common/advanceSettings";
import { useContextApi } from "next-common/context/api";
import { useChainSettings } from "next-common/context/chain";
Expand Down Expand Up @@ -45,10 +44,8 @@ function WithdrawUnbondedPopupContent() {

export default function WithdrawUnbondedPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Withdraw Unbonded" onClose={onClose}>
<WithdrawUnbondedPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Withdraw Unbonded" onClose={onClose}>
<WithdrawUnbondedPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import TxSubmissionButton from "next-common/components/common/tx/txSubmissionBut
import EstimatedGas from "next-common/components/estimatedGas";
import BalanceField from "next-common/components/popup/fields/balanceField";
import Signer from "next-common/components/popup/fields/signerField";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import AdvanceSettings from "next-common/components/summary/newProposalQuickStart/common/advanceSettings";
import { useContextApi } from "next-common/context/api";
import { useChainSettings } from "next-common/context/chain";
Expand Down Expand Up @@ -53,10 +52,8 @@ function ClaimPoolRewardPopupContent() {

export default function ClaimPoolRewardPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Claim Reward" onClose={onClose}>
<ClaimPoolRewardPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Claim Reward" onClose={onClose}>
<ClaimPoolRewardPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import TxSubmissionButton from "next-common/components/common/tx/txSubmissionBut
import EstimatedGas from "next-common/components/estimatedGas";
import BalanceField from "next-common/components/popup/fields/balanceField";
import Signer from "next-common/components/popup/fields/signerField";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import AdvanceSettings from "next-common/components/summary/newProposalQuickStart/common/advanceSettings";
import { useContextApi } from "next-common/context/api";
import { useChainSettings } from "next-common/context/chain";
Expand Down Expand Up @@ -54,10 +53,8 @@ function CompoundPoolRewardPopupContent() {

export default function CompoundPoolRewardPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Compound Reward" onClose={onClose}>
<CompoundPoolRewardPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Compound Reward" onClose={onClose}>
<CompoundPoolRewardPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import TxSubmissionButton from "next-common/components/common/tx/txSubmissionBut
import EstimatedGas from "next-common/components/estimatedGas";
import BalanceField from "next-common/components/popup/fields/balanceField";
import Signer from "next-common/components/popup/fields/signerField";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import AdvanceSettings from "next-common/components/summary/newProposalQuickStart/common/advanceSettings";
import { useContextApi } from "next-common/context/api";
import { useChainSettings } from "next-common/context/chain";
Expand Down Expand Up @@ -48,10 +47,8 @@ function PoolWithdrawUnbondedPopupContent() {

export default function PoolWithdrawUnbondedPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Withdraw Unbonded" onClose={onClose}>
<PoolWithdrawUnbondedPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Withdraw Unbonded" onClose={onClose}>
<PoolWithdrawUnbondedPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import TxSubmissionButton from "next-common/components/common/tx/txSubmissionButton";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import { useContextApi } from "next-common/context/api";
import { useChainSettings } from "next-common/context/chain";
import { useCallback, useState } from "react";
Expand Down Expand Up @@ -85,10 +84,8 @@ function BondExtraPopupContent() {

export default function BondExtraPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Bond Extra" onClose={onClose}>
<BondExtraPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Bond Extra" onClose={onClose}>
<BondExtraPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import TxSubmissionButton from "next-common/components/common/tx/txSubmissionButton";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import { useContextApi } from "next-common/context/api";
import { useCallback } from "react";
import SecondaryButton from "next-common/lib/button/secondary";
Expand Down Expand Up @@ -73,10 +72,8 @@ function ClaimPayoutPopupContent() {

export default function ClaimPayoutPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Claim Payout" onClose={onClose}>
<ClaimPayoutPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Claim Payout" onClose={onClose}>
<ClaimPayoutPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import TxSubmissionButton from "next-common/components/common/tx/txSubmissionButton";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import { useContextApi } from "next-common/context/api";
import { useChainSettings } from "next-common/context/chain";
import { useMinJoin } from "next-common/components/staking/pools/hooks/useMinJoin";
Expand Down Expand Up @@ -87,10 +86,8 @@ function JoinPopupContent() {

export default function JoinPopup({ onClose, poolId }) {
return (
<SignerPopupWrapper onClose={onClose} poolId={poolId}>
<Popup title="Join Pool" onClose={onClose}>
<JoinPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner onClose={onClose} poolId={poolId} title="Join Pool">
<JoinPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import TxSubmissionButton from "next-common/components/common/tx/txSubmissionButton";
import Popup from "next-common/components/popup/wrapper/Popup";
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import PopupWithSigner from "next-common/components/popupWithSigner";
import Signer from "next-common/components/popup/fields/signerField";
import { useContextApi } from "next-common/context/api";
import { useChainSettings } from "next-common/context/chain";
Expand Down Expand Up @@ -91,10 +90,8 @@ function UnBondPopupContent() {

export default function UnBondPopup({ onClose }) {
return (
<SignerPopupWrapper onClose={onClose}>
<Popup title="Unbond Pool" onClose={onClose}>
<UnBondPopupContent />
</Popup>
</SignerPopupWrapper>
<PopupWithSigner title="Unbond Pool" onClose={onClose}>
<UnBondPopupContent />
</PopupWithSigner>
);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import SignerPopupWrapper from "next-common/components/popupWithSigner/signerPopupWrapper";
import Popup from "next-common/components/popup/wrapper/Popup";
import PopupWithSigner from "next-common/components/popupWithSigner";
import SummaryLayout from "next-common/components/summary/layout/layout";
import SummaryItem from "next-common/components/summary/layout/item";
import { useMemo } from "react";
Expand Down Expand Up @@ -82,15 +81,14 @@ export default function UnbondingPopup({ onClose, unbondingEras }) {
return null;
}
return (
<SignerPopupWrapper
<PopupWithSigner
onClose={onClose}
unbondingEras={unbondingEras}
activeEra={activeEra}
title="Unbonding Pool"
>
<Popup title="Unbonding Pool" onClose={onClose}>
<UnbondingPopupContent />
</Popup>
</SignerPopupWrapper>
<UnbondingPopupContent />
</PopupWithSigner>
);
}

Expand Down
Loading