Skip to content

Commit

Permalink
refactor: simplify useTrimmedInput hook return type from array to object
Browse files Browse the repository at this point in the history
  • Loading branch information
kleysc committed Jan 21, 2025
1 parent 4c09558 commit f84cb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/router/src/hooks/custom/useTrimmedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export const useTrimmedInputArray = (initialValues: string[]) => {
});
}, []);

return [values, handleChange] as const;
return { values, handleChange };
};

0 comments on commit f84cb58

Please sign in to comment.