Skip to content

Commit

Permalink
default location added to alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena committed Mar 12, 2024
1 parent 0842a51 commit eca50de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/datasets/alerts/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export function useAlerts<T>(
method: 'GET',
url: '/fetch-alerts',
params: {
location_id,
...(location_id ? { location_id } : { location_id: 'worldwide' }),
...params,
},
}).then((response) => response.data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const CardBasemapContextual = ({ id, type, name, description }: CardBasemapConte
onClick={handleClick}
data-testid={id}
className={cn({
[`relative mr-10 h-24 w-24 shrink-0 rounded-xl border-4 border-transparent bg-cover bg-center`]:
[`relative mr-10 h-24 w-24 shrink-0 rounded-xl border-4 border-transparent bg-cover bg-center`]:
true,
'border-brand-800': isActive,
})}
Expand Down
1 change: 1 addition & 0 deletions src/containers/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import type { RestorationPopUp, PopUpKey, LocationPopUp } from 'types/map';

import LayerManager from './layer-manager';
import LocationPopup from './location-pop-up';
import Restoration from 'containers/datasets/restoration/widget';

export const DEFAULT_PROPS = {
initialViewState: {
Expand Down

0 comments on commit eca50de

Please sign in to comment.