Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
fix: merge dev-test
Browse files Browse the repository at this point in the history
  • Loading branch information
sotatek-huytran committed Jul 15, 2024
2 parents 2ce871a + 20475c1 commit 5a5c5b5
Show file tree
Hide file tree
Showing 52 changed files with 145 additions and 718 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ allure-results
.env.test.local
.env.production.local
env.global.js
yarn.lock

npm-debug.log*
yarn-debug.log*
Expand Down
13 changes: 0 additions & 13 deletions src/commons/resources/icons/fetch-data-err-dark 2.svg

This file was deleted.

13 changes: 0 additions & 13 deletions src/commons/resources/icons/fetch-data-err-light 2.svg

This file was deleted.

29 changes: 15 additions & 14 deletions src/commons/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import MediumIcon from "./icons/medium.svg";
import RocketBackground from "./icons/rocket-bg.svg";
import USDIcon from "./icons/usd.svg";
import SeeMoreIcon from "./icons/seemore.svg";
import SignOut from "./icons/sign-out.svg";
import FlintIcon from "./icons/flint.svg";
import NamiIcon from "./icons/nami.svg";
import EternlIcon from "./icons/eternl.svg";
Expand Down Expand Up @@ -97,6 +96,10 @@ import DownRedDarkmode from "./icons/downRedDark.svg";
import DownRedUtxoDarkmode from "./icons/downUtxoRedDark.svg";
import ArrowUpIcon from "./icons/arrow-up.svg";
import ArrowUpDarkIcon from "./icons/arrow-up-dark.svg";
import DisableArrowUpLightIcon from "./icons/disable-arrow-up-light.svg";
import DisableArrowDownLightIcon from "./icons/disable-arrow-down-light.svg";
import DisableArrowUpDarkIcon from "./icons/disable-arrow-up-dark.svg";
import DisableArrowDownDarkIcon from "./icons/disable-arrow-down-dark.svg";
import ArrowDownIcon from "./icons/arrow-down-red.svg";
import ArrowDownDarkIcon from "./icons/arrow-down-red-dark.svg";
import PolicyDark from "./icons/policy-dark.svg";
Expand All @@ -108,10 +111,6 @@ import PoolSizeDarkIcon from "./images/PoolSizeDark.png";
import PoolSizeLightIcon from "./images/PoolSizeLight.png";
import DelegatingToDarkIcon from "./images/DelegatingToDark.png";
import RewardsWithdrawDarkIcon from "./images/RewardsWithdrawDark.png";
import DisableArrowUpLightIcon from "./icons/disable-arrow-up-light.svg";
import DisableArrowDownLightIcon from "./icons/disable-arrow-down-light.svg";
import DisableArrowUpDarkIcon from "./icons/disable-arrow-up-dark.svg";
import DisableArrowDownDarkIcon from "./icons/disable-arrow-down-dark.svg";
import DeregistrationDarkIcon from "./icons/deregistration-icon-dark.svg";
import DeregistrationLightIcon from "./icons/deregistration-icon-light.svg";
import RegistrationDarkIcon from "./icons/registration-icon-dark.svg";
Expand Down Expand Up @@ -157,6 +156,7 @@ import User2 from "./icons/user2.svg";
import WhiteSearchIcon from "./icons/white-search-icon.svg";
import CopyOutlineIcon from "./icons/copy-outline.svg";
import GovernanceHome from "./icons/governanceHome.svg";
import SignOut from "./icons/sign-out.svg";
//only component

import SignOutComponent from "./icons/sign-out.svg?react";
Expand Down Expand Up @@ -222,12 +222,10 @@ import DelegatorsDrepIcon from "./icons/delegatorsDrep.svg?react";
import LifetimeVoteDrepIcon from "./icons/liifetimeVoteDrep.svg?react";
import governanceVotesIcon from "./icons/governanceVotes.svg?react";
import StakingLifecycleComponent from "./icons/menus/stakingLifecycle.svg?react";
import VotesIcon from "./icons/votes.svg?react";
import VotesYesIcon from "./icons/voteYes.svg?react";
import VotesNoIcon from "./icons/voteNo.svg?react";
import VotesAbstainIcon from "./icons/voteAbstain.svg?react";
import DropdownIcon from "./icons/dropdown.svg?react";
import DisclaimerIcon from "./icons/DisclaimerIcon.svg?react";
import VotesIcon from "./icons/votes.svg?react";
import VotesNoneIcon from "./icons/voteNone.svg?react";
import ArrowLeftWhiteIcon from "./icons/arrow-left-white.svg?react";
import GovernanceIdIcon from "./icons/governanceId.svg?react";
Expand All @@ -241,6 +239,8 @@ import ExpiryIcon from "./icons/expiry-date.svg?react";
import AnchorTextIcon from "./icons/anchor-text.svg?react";
import BlackWarningIcon from "./icons/warning-black.svg?react";
import BlackCircleIcon from "./icons/black-cirle-copy.svg?react";
import DropdownIcon from "./icons/dropdown.svg?react";
import DisclaimerIcon from "./icons/DisclaimerIcon.svg?react";
import RepeatVotesIcon from "./icons/repeat-votes.svg?react";
import historyIcon from "./icons/history.svg?react";
import multiYesIcon from "./icons/multiyes.svg?react";
Expand Down Expand Up @@ -398,6 +398,7 @@ export {
DeregistrationLightIcon,
RegistrationDarkIcon,
RegistrationLightIcon,

// React component
ExchangeIcon,
PolygonDarkIcon,
Expand Down Expand Up @@ -492,12 +493,12 @@ export {
DelegatorsDrepIcon,
LifetimeVoteDrepIcon,
governanceVotesIcon,
DisclaimerIcon,
DropdownIcon,
VotesIcon,
VotesYesIcon,
VotesNoIcon,
VotesAbstainIcon,
DisclaimerIcon,
DropdownIcon,
VotesNoneIcon,
ArrowLeftWhiteIcon,
GovernanceIdIcon,
Expand Down Expand Up @@ -899,9 +900,6 @@ export {
CheckedCIPIcon,
SmallInfoIcon,
CIP60WarningIcon,
PlusSquareIcon,
CloseSquareIcon,
MinusSquareIcon,
OpenTimeLock,
LockedTimelock,
SigNative,
Expand All @@ -921,5 +919,8 @@ export {
CCLastChange,
CClistMembers,
CCGorvernanceVote,
CCHistoryStatus
CCHistoryStatus,
PlusSquareIcon,
CloseSquareIcon,
MinusSquareIcon
};
2 changes: 1 addition & 1 deletion src/commons/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const getShortHashXs = (address = "", firstpart?: number, lastPart?: numb
if (address?.length <= 18) return address;
return address ? `${address.slice(0, firstpart ? firstpart : 7)}...${address.slice(-(lastPart ? lastPart : 5))}` : "";
};

export const getShortValue = (address = "", length = 50) => {
return address.slice(0, length);
};
Expand Down Expand Up @@ -383,7 +384,6 @@ export function validateTokenExpired() {
return now.isBefore(exp);
} catch (e) {
removeAuthInfo();
return false;
}
}

Expand Down
161 changes: 0 additions & 161 deletions src/components/Contracts/Proposingviews/index 2.tsx

This file was deleted.

Loading

0 comments on commit 5a5c5b5

Please sign in to comment.