From 6359fee99cc2ade016f6d4c6afe7032e3092b23d Mon Sep 17 00:00:00 2001 From: fivecut Date: Thu, 13 Jun 2024 14:38:56 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: fivecut --- .../GovRepresentatives/GovRepresentativesModalContent.tsx | 2 +- src/layouts/AppHeader.tsx | 4 ++-- src/layouts/components/TestNetModeSwitcher.tsx | 2 +- .../dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx | 2 +- src/store/poolSlice.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/transactions/GovRepresentatives/GovRepresentativesModalContent.tsx b/src/components/transactions/GovRepresentatives/GovRepresentativesModalContent.tsx index 204ad9422c..fbaad06dd8 100644 --- a/src/components/transactions/GovRepresentatives/GovRepresentativesModalContent.tsx +++ b/src/components/transactions/GovRepresentatives/GovRepresentativesModalContent.tsx @@ -73,7 +73,7 @@ export const GovRepresentativesContent = ({ const isDirty = reps.some((r) => { const rep = representatives.find((re) => re.chainId === r.chainId); - // dirty if remvoing or changing address from initial value + // dirty if removing or changing address from initial value if (!rep) return false; return ( diff --git a/src/layouts/AppHeader.tsx b/src/layouts/AppHeader.tsx index 7dc9d65fc5..fc1670303b 100644 --- a/src/layouts/AppHeader.tsx +++ b/src/layouts/AppHeader.tsx @@ -124,7 +124,7 @@ export function AppHeader() { const disableTestnet = () => { localStorage.setItem('testnetsEnabled', 'false'); - // Set window.location to trigger a page reload when navigating to the the dashboard + // Set window.location to trigger a page reload when navigating to the dashboard window.location.href = '/'; }; @@ -134,7 +134,7 @@ export function AppHeader() { localStorage.removeItem('forkBaseChainId'); localStorage.removeItem('forkNetworkId'); localStorage.removeItem('forkRPCUrl'); - // Set window.location to trigger a page reload when navigating to the the dashboard + // Set window.location to trigger a page reload when navigating to the dashboard window.location.href = '/'; }; diff --git a/src/layouts/components/TestNetModeSwitcher.tsx b/src/layouts/components/TestNetModeSwitcher.tsx index df1a883d5b..933ec77117 100644 --- a/src/layouts/components/TestNetModeSwitcher.tsx +++ b/src/layouts/components/TestNetModeSwitcher.tsx @@ -18,7 +18,7 @@ export const TestNetModeSwitcher = ({ component = ListItem }: TestNetModeSwitche const newState = !testnetsEnabled; setTestnetsMode(!testnetsEnabled); localStorage.setItem(testnetsEnabledId, newState ? 'true' : 'false'); - // Set window.location to trigger a page reload when navigating to the the dashboard + // Set window.location to trigger a page reload when navigating to the dashboard window.location.href = '/'; }; diff --git a/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx b/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx index 02e2fdceda..7bfb459182 100644 --- a/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx +++ b/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx @@ -218,7 +218,7 @@ export const SupplyAssetsList = () => { setSortName={setSortName} setSortDesc={setSortDesc} sortKey={col.sortKey} - source="Supplies Dashbaord" + source="Supplies Dashboard" > {col.title} diff --git a/src/store/poolSlice.ts b/src/store/poolSlice.ts index 46fa55b603..ec365828ad 100644 --- a/src/store/poolSlice.ts +++ b/src/store/poolSlice.ts @@ -104,7 +104,7 @@ export interface PoolSlice { claimRewards: ( args: ClaimRewardsActionsProps & { formattedReserves: FormattedReservesAndIncentives[] } ) => Promise; - // TODO: optimize types to use only neccessary properties + // TODO: optimize types to use only necessary properties swapCollateral: (args: SwapActionProps) => Promise; withdrawAndSwitch: (args: WithdrawAndSwitchActionProps) => PopulatedTransaction; repay: (args: RepayArgs) => PopulatedTransaction;