mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 14:59:36 +02:00
chore: Refactor CollectionCard component and improve dropdown menu styling
This commit is contained in:
parent
d552c50349
commit
c35795144e
3 changed files with 55 additions and 64 deletions
|
@ -32,6 +32,17 @@
|
|||
|
||||
images = adventureToEdit.images || [];
|
||||
|
||||
if (adventureToEdit.longitude && adventureToEdit.latitude) {
|
||||
markers = [
|
||||
{
|
||||
lngLat: { lng: adventureToEdit.longitude, lat: adventureToEdit.latitude },
|
||||
location: adventureToEdit.location || '',
|
||||
name: adventureToEdit.name,
|
||||
activity_type: ''
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
if (longitude && latitude) {
|
||||
adventureToEdit.latitude = latitude;
|
||||
adventureToEdit.longitude = longitude;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue