From 7f553306d15d7b6937d759e93121e714fb7b1b24 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Fri, 22 Mar 2024 21:29:53 +0800 Subject: [PATCH] feat: display delegation details by default --- src/features/staking/components/main-page.tsx | 2 +- src/features/staking/components/validator-delegation.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/staking/components/main-page.tsx b/src/features/staking/components/main-page.tsx index 0de42dd..f52fbf6 100644 --- a/src/features/staking/components/main-page.tsx +++ b/src/features/staking/components/main-page.tsx @@ -16,7 +16,7 @@ import ValidatorsTable from "./validators-table"; function StakingPage() { const { staking } = useStaking(); - const [isShowingDetails, setIsShowingDetails] = useState(false); + const [isShowingDetails, setIsShowingDetails] = useState(true); const canShowDetail = getCanShowDetails(staking.state); diff --git a/src/features/staking/components/validator-delegation.tsx b/src/features/staking/components/validator-delegation.tsx index 917019d..de2592c 100644 --- a/src/features/staking/components/validator-delegation.tsx +++ b/src/features/staking/components/validator-delegation.tsx @@ -50,7 +50,7 @@ export default function ValidatorDelegation() { const address = searchParams.get("address"); const stakingRef = useStaking(); const [, setShowAbstraxion] = useModal(); - const [isShowingDetails, setIsShowingDetails] = useState(false); + const [isShowingDetails, setIsShowingDetails] = useState(true); const { isConnected, staking } = stakingRef;