-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WV-3049: Dismiss DDV notifications with local storage (#5101)
* DDV Alerts WIP * dismiss ddv zoom & location alerts * clean up * turn off alerts when zoomed or located correctly * update ddv check to include Nadir * cleanup * include opera layer * handle multiple dismissable alerts
- Loading branch information
1 parent
4eb27c7
commit 778e88d
Showing
6 changed files
with
218 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { | ||
ACTIVATE_DDV_ZOOM_ALERT, | ||
ACTIVATE_DDV_LOCATION_ALERT, | ||
DEACTIVATE_DDV_LOCATION_ALERT, | ||
DEACTIVATE_DDV_ZOOM_ALERT, | ||
} from './constants'; | ||
|
||
export function enableDDVZoomAlert(title) { | ||
return { | ||
type: ACTIVATE_DDV_ZOOM_ALERT, | ||
title, | ||
}; | ||
} | ||
|
||
export function enableDDVLocationAlert(title) { | ||
return { | ||
type: ACTIVATE_DDV_LOCATION_ALERT, | ||
title, | ||
}; | ||
} | ||
|
||
export function disableDDVZoomAlert(title) { | ||
return { | ||
type: DEACTIVATE_DDV_ZOOM_ALERT, | ||
title, | ||
}; | ||
} | ||
|
||
export function disableDDVLocationAlert(title) { | ||
return { | ||
type: DEACTIVATE_DDV_LOCATION_ALERT, | ||
title, | ||
}; | ||
} |
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.