diff --git a/apps/vaults-v3/components/details/tabs/VaultDetailsStrategies.tsx b/apps/vaults-v3/components/details/tabs/VaultDetailsStrategies.tsx index c3e4d0642..46e7747da 100755 --- a/apps/vaults-v3/components/details/tabs/VaultDetailsStrategies.tsx +++ b/apps/vaults-v3/components/details/tabs/VaultDetailsStrategies.tsx @@ -85,7 +85,7 @@ export function VaultDetailsStrategies({currentVault}: {currentVault: TYDaemonVa { + onSort={(newSortBy: string, newSortDirection: TSortDirection): void => { onChangeSortBy(newSortBy as TPossibleSortBy); onChangeSortDirection(newSortDirection as TSortDirection); }} diff --git a/apps/vaults/hooks/useVaultsQueryArgs.ts b/apps/vaults/hooks/useVaultsQueryArgs.ts index 777c0e044..ecb8dbbb6 100644 --- a/apps/vaults/hooks/useVaultsQueryArgs.ts +++ b/apps/vaults/hooks/useVaultsQueryArgs.ts @@ -281,7 +281,7 @@ function useQueryArguments(props: { router.replace({pathname: router.pathname, query: queryArgs}, undefined, {shallow: true}); return; } - queryArgs.sortDirection = value; + queryArgs.sortDirection = value as string; router.replace({pathname: router.pathname, query: queryArgs}, undefined, {shallow: true}); }, onChangeSortBy: (value): void => { diff --git a/next-env.d.ts b/next-env.d.ts index 4f11a03dc..a4a7b3f5c 100755 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information. diff --git a/pages/v3/index.tsx b/pages/v3/index.tsx index 33ac5d902..7d9748b9d 100644 --- a/pages/v3/index.tsx +++ b/pages/v3/index.tsx @@ -335,7 +335,7 @@ function ListOfVaults(): ReactElement { { + onSort={(newSortBy: string, newSortDirection: TSortDirection): void => { if (newSortDirection === '') { onChangeSortBy('featuringScore'); onChangeSortDirection(''); diff --git a/pages/vaults/index.tsx b/pages/vaults/index.tsx index e35e1ba71..d320c2f58 100644 --- a/pages/vaults/index.tsx +++ b/pages/vaults/index.tsx @@ -209,7 +209,7 @@ function ListOfVaults(): ReactElement { dataClassName={'grid-cols-10'} sortBy={sortBy} sortDirection={sortDirection} - onSort={(newSortBy: string, newSortDirection: string): void => { + onSort={(newSortBy: string, newSortDirection: TSortDirection): void => { onChangeSortBy(newSortBy as TPossibleSortBy); onChangeSortDirection(newSortDirection as TSortDirection); }}