Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Sep 20, 2024
1 parent 7045967 commit 6803e7c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function VaultDetailsStrategies({currentVault}: {currentVault: TYDaemonVa
<VaultsV3ListHead
sortBy={sortBy}
sortDirection={sortDirection}
onSort={(newSortBy: string, newSortDirection: string): void => {
onSort={(newSortBy: string, newSortDirection: TSortDirection): void => {
onChangeSortBy(newSortBy as TPossibleSortBy);
onChangeSortDirection(newSortDirection as TSortDirection);
}}
Expand Down
2 changes: 1 addition & 1 deletion apps/vaults/hooks/useVaultsQueryArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// 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.
2 changes: 1 addition & 1 deletion pages/v3/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function ListOfVaults(): ReactElement {
<VaultsV3ListHead
sortBy={sortBy}
sortDirection={sortDirection}
onSort={(newSortBy: string, newSortDirection: string): void => {
onSort={(newSortBy: string, newSortDirection: TSortDirection): void => {
if (newSortDirection === '') {
onChangeSortBy('featuringScore');
onChangeSortDirection('');
Expand Down
2 changes: 1 addition & 1 deletion pages/vaults/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}}
Expand Down

0 comments on commit 6803e7c

Please sign in to comment.