diff --git a/sonar-project.properties b/sonar-project.properties index 98f064f6a..081be0602 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1 +1 @@ -sonar.projectKey=oraichain_oraiscan-frontend_AYa6x_5MjQmnUOm4jDP9 \ No newline at end of file +sonar.projectKey=oraichain_oraiscan-frontend_AYoDFGkVkauZkVxG9Y0Q \ No newline at end of file diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList.js b/src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList.js similarity index 95% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList.js rename to src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList.js index c0bde7e3e..8cad54c07 100644 --- a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList.js +++ b/src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList.js @@ -12,7 +12,7 @@ import {walletStation} from "src/lib/walletStation"; import {notification} from "antd"; import {handleTransactionResponse} from "src/helpers/transaction"; import LoadingOverlay from "src/components/common/LoadingOverlay"; -import {handleErrorMessage} from "../../../../../lib/scripts"; +import {handleErrorMessage} from "src/lib/scripts.js"; import styles from "./ClaimCardList.module.scss"; const cx = classNames.bind(styles); diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList.module.scss b/src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList.module.scss similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList.module.scss rename to src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList.module.scss diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardListSkeleton.js b/src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardListSkeleton.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardListSkeleton.js rename to src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardListSkeleton.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/index.js b/src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/index.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/index.js rename to src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/index.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwAllBtn/ClaimRwAllBtn.js b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwAllBtn/ClaimRwAllBtn.js similarity index 97% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwAllBtn/ClaimRwAllBtn.js rename to src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwAllBtn/ClaimRwAllBtn.js index e06cce3c2..dc4fbefe4 100644 --- a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwAllBtn/ClaimRwAllBtn.js +++ b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwAllBtn/ClaimRwAllBtn.js @@ -4,7 +4,6 @@ import cn from "classnames/bind"; import {useForm} from "react-hook-form"; import {useDispatch, useSelector} from "react-redux"; import _ from "lodash"; -import * as yup from "yup"; import {useHistory} from "react-router-dom"; import {handleTransactionResponse, payloadTransaction} from "src/helpers/transaction"; import amountConsts from "src/constants/amount"; @@ -12,7 +11,7 @@ import DialogForm from "src/components/DialogForm"; import {walletStation} from "src/lib/walletStation"; import {notification} from "antd"; import LoadingOverlay from "src/components/common/LoadingOverlay"; -import {handleErrorMessage} from "../../../../../../lib/scripts"; +import {handleErrorMessage} from "src/lib/scripts.js"; import styles from "../ClaimRwBtn/ClaimRwBtn.module.scss"; const cx = cn.bind(styles); diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwAllBtn/index.js b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwAllBtn/index.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwAllBtn/index.js rename to src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwAllBtn/index.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/ClaimRwBtn.js b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/ClaimRwBtn.js similarity index 96% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/ClaimRwBtn.js rename to src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/ClaimRwBtn.js index c439cb437..f80cbc04f 100644 --- a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/ClaimRwBtn.js +++ b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/ClaimRwBtn.js @@ -10,12 +10,11 @@ import {showAlert} from "src/store/modules/global"; import {useHistory} from "react-router-dom"; import {handleTransactionResponse, payloadTransaction} from "src/helpers/transaction"; import amountConsts from "src/constants/amount"; -import {calculateAmount} from "src/helpers/calculateAmount"; import DialogForm from "src/components/DialogForm"; import {walletStation} from "src/lib/walletStation"; import {notification} from "antd"; import LoadingOverlay from "src/components/common/LoadingOverlay"; -import {handleErrorMessage} from "../../../../../../lib/scripts"; +import {handleErrorMessage} from "src/lib/scripts.js"; import styles from "./ClaimRwBtn.module.scss"; const cx = cn.bind(styles); diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/ClaimRwBtn.module.scss b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/ClaimRwBtn.module.scss similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/ClaimRwBtn.module.scss rename to src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/ClaimRwBtn.module.scss diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/index.js b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/index.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/index.js rename to src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimRwBtn/index.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTable.js b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTable.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTable.js rename to src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTable.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTable.module.scss b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTable.module.scss similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTable.module.scss rename to src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTable.module.scss diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTableSkeleton.js b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTableSkeleton.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTableSkeleton.js rename to src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTableSkeleton.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/index.js b/src/components/DelegatedValidator/DelegatedClaim/ClaimTable/index.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/index.js rename to src/components/DelegatedValidator/DelegatedClaim/ClaimTable/index.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedClaim/DelegatedClaim.js b/src/components/DelegatedValidator/DelegatedClaim/DelegatedClaim.js similarity index 69% rename from src/components/Wallet/DelegatedValidator/DelegatedClaim/DelegatedClaim.js rename to src/components/DelegatedValidator/DelegatedClaim/DelegatedClaim.js index 4c877b34a..f188231f5 100644 --- a/src/components/Wallet/DelegatedValidator/DelegatedClaim/DelegatedClaim.js +++ b/src/components/DelegatedValidator/DelegatedClaim/DelegatedClaim.js @@ -5,10 +5,10 @@ import cn from "classnames/bind"; import {useTheme} from "@material-ui/core/styles"; import useMediaQuery from "@material-ui/core/useMediaQuery"; import consts from "src/constants/consts"; -import ClaimTable from "src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTable"; -import ClaimTableSkeleton from "src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTableSkeleton"; -import ClaimCardList from "src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList"; -import ClaimCardListSkeleton from "src/components/Wallet/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardListSkeleton"; +import ClaimTable from "src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTable"; +import ClaimTableSkeleton from "src/components/DelegatedValidator/DelegatedClaim/ClaimTable/ClaimTableSkeleton"; +import ClaimCardList from "src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardList"; +import ClaimCardListSkeleton from "src/components/DelegatedValidator/DelegatedClaim/ClaimCardList/ClaimCardListSkeleton"; import NoResult from "src/components/common/NoResult"; import arrowIcon from "src/assets/wallet/arrow.svg"; import styles from "./DelegatedClaim.module.scss"; @@ -43,10 +43,6 @@ export default function({setActiveTab, address}) {
Please be aware that you have to wait 14 days to complete unbonding your funds from validators.
- {tableSection} diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/DelegatedWithdraw.module.scss b/src/components/DelegatedValidator/DelegatedWithdraw/DelegatedWithdraw.module.scss similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/DelegatedWithdraw.module.scss rename to src/components/DelegatedValidator/DelegatedWithdraw/DelegatedWithdraw.module.scss diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardList.js b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardList.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardList.js rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardList.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardList.module.scss b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardList.module.scss similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardList.module.scss rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardList.module.scss diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardListSkeleton.js b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardListSkeleton.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardListSkeleton.js rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/WithdrawCardListSkeleton.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/index.js b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/index.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/index.js rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawCardList/index.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/RedelegateBtn.js b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/RedelegateBtn.js similarity index 98% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/RedelegateBtn.js rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/RedelegateBtn.js index b7fcf44a4..e96425d75 100644 --- a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/RedelegateBtn.js +++ b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/RedelegateBtn.js @@ -16,7 +16,7 @@ import {calculateAmount} from "src/helpers/calculateAmount"; import {walletStation} from "src/lib/walletStation"; import {notification} from "antd"; import LoadingOverlay from "src/components/common/LoadingOverlay"; -import {handleErrorMessage} from "../../../../../../lib/scripts"; +import {handleErrorMessage} from "src/lib/scripts.js"; import styles from "./RedelegateBtn.module.scss"; import { amountCoinDecimal } from 'src/helpers/helper' import consts from "src/constants/consts"; diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/RedelegateBtn.module.scss b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/RedelegateBtn.module.scss similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/RedelegateBtn.module.scss rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/RedelegateBtn.module.scss diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/index.js b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/index.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/index.js rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/RedelegateBtn/index.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/WithdrawBtn.js b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/WithdrawBtn.js similarity index 98% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/WithdrawBtn.js rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/WithdrawBtn.js index 0d661072e..fa9c3aa47 100644 --- a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/WithdrawBtn.js +++ b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/WithdrawBtn.js @@ -18,7 +18,7 @@ import {calculateAmount} from "src/helpers/calculateAmount"; import {walletStation} from "src/lib/walletStation"; import {notification} from "antd"; import LoadingOverlay from "src/components/common/LoadingOverlay"; -import {handleErrorMessage} from "../../../../../../lib/scripts"; +import {handleErrorMessage} from "src/lib/scripts.js"; import styles from "./WithdrawBtn.module.scss"; const cx = cn.bind(styles); diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/WithdrawBtn.module.scss b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/WithdrawBtn.module.scss similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/WithdrawBtn.module.scss rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/WithdrawBtn.module.scss diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/index.js b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/index.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/index.js rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawBtn/index.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTable.js b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTable.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTable.js rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTable.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTable.module.scss b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTable.module.scss similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTable.module.scss rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTable.module.scss diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTableSkeleton.js b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTableSkeleton.js similarity index 93% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTableSkeleton.js rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTableSkeleton.js index dee8182e2..5f099b1a0 100644 --- a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTableSkeleton.js +++ b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTableSkeleton.js @@ -3,7 +3,7 @@ import Skeleton from "@material-ui/lab/Skeleton"; import classNames from "classnames/bind"; import {tableThemes} from "src/constants/tableThemes"; import ThemedTable from "src/components/common/ThemedTable"; -import {getHeaderRow} from "src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTable"; +import {getHeaderRow} from "src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/WithdrawTable"; import styles from "./WithdrawTable.module.scss"; const WithdrawTableSkeleton = memo(({rows = 5}) => { diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/index.js b/src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/index.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/WithdrawTable/index.js rename to src/components/DelegatedValidator/DelegatedWithdraw/WithdrawTable/index.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedWithdraw/index.js b/src/components/DelegatedValidator/DelegatedWithdraw/index.js similarity index 100% rename from src/components/Wallet/DelegatedValidator/DelegatedWithdraw/index.js rename to src/components/DelegatedValidator/DelegatedWithdraw/index.js diff --git a/src/components/Wallet/DelegatedValidator/DelegatedValidator.js b/src/components/Wallet/DelegatedValidator/DelegatedValidator.js deleted file mode 100644 index 6cf32ee02..000000000 --- a/src/components/Wallet/DelegatedValidator/DelegatedValidator.js +++ /dev/null @@ -1,18 +0,0 @@ -/* eslint-disable react-hooks/exhaustive-deps */ -import * as React from "react"; -import cn from "classnames/bind"; -import DelegatedClaim from "src/components/Wallet/DelegatedValidator/DelegatedClaim"; -import DelegatedWithdraw from "src/components/Wallet/DelegatedValidator/DelegatedWithdraw"; -import styles from "./DelegatedValidator.module.scss"; - -const cx = cn.bind(styles); - -export default function({address}) { - const [activeTab, setActiveTab] = React.useState(0); - return ( -