-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cadd216
commit c62c236
Showing
9 changed files
with
453 additions
and
233 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Un nouveau AddressAutocoomplete a été créé | ||
Voila les changements à faire | ||
|
||
|
||
- import AddressAutocomplete from '@/components/addressAutocomplete'; est remplacé par import AddressAutocomplete, { type AddressAutocompleteInputProps } from '@/components/form/dsfr/AddressAutocompleteInput'; | ||
- <AddressAutocomplete placeholder="Tapez ici votre adresse" onAddressSelected={handleAddressSelected} /> est remplacé par <AddressAutocomplete nativeInputProps={{ placeholder: 'Tapez ici votre adresse' }} onSelect={handleAddressSelected} /> | ||
- la fonction | ||
``` | ||
const handleAddressSelected = useCallback( | ||
async (address: string, geoAddress?: SuggestionItem): Promise<void> => { | ||
``` | ||
est remplacée par | ||
```` | ||
const handleAddressSelected: AddressAutocompleteInputProps['onSelect'] = useCallback( | ||
async (geoAddress?: SuggestionItem): Promise<void> => { | ||
const address = geoAddress?.properties?.label; | ||
``` | ||
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
Oops, something went wrong.