-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEN-2178]: fix undefined with potential destinations (#2156)
This pull request includes several changes to the `frontend/webapp` codebase, focusing on improvements to type imports, interface renaming, and code formatting. Improvements to type imports and interface renaming: * [`potential-destinations-list/index.tsx`](diffhunk://#diff-41a63071c7c4c133a8cffb05f29bf703d8aa2891b38a836baa04b3cf3e543fe9L4-R4): Changed the import style for `DestinationTypeItem` to use the `type` keyword. * [`usePotentialDestinations.ts`](diffhunk://#diff-f8f74ac55108e060a066d0719294ae7842bba038561feeb066c0b09e4b40b037L7-R49): Renamed the `DestinationDetails` interface to `PotentialDestination` and updated related code accordingly. Code formatting and property modification: * [`destinations-list/index.tsx`](diffhunk://#diff-0fc3893b30022c16fec91cb64d38fa36de0dc4e8eabbbbb7a3b94701b45a4badL58-R58): Removed the fallback for `supportedSignals` in the `monitors` property of `DestinationsList`. * [`usePotentialDestinations.ts`](diffhunk://#diff-f8f74ac55108e060a066d0719294ae7842bba038561feeb066c0b09e4b40b037L7-R49): Reformatted the code for better readability and consistency, including combining multiple `useQuery` calls into single lines and improving the mapping logic for potential destinations.
- Loading branch information
1 parent
a1c17d2
commit 0168951
Showing
8 changed files
with
98 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 50 additions & 32 deletions
82
frontend/webapp/hooks/destinations/usePotentialDestinations.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters