Skip to content

Commit

Permalink
feat: add bal widget navigate event (#1919)
Browse files Browse the repository at this point in the history
* feat: add bal widget navigate event

* fix: use window location instead of next router

* fix: add target to parent nav
  • Loading branch information
MaGOs92 authored Dec 10, 2024
1 parent 137781d commit b476261
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contexts/BALWidget.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ export function BALWidgetProvider({ children }: BALWidgetProviderProps) {
case 'BAL_WIDGET_CONFIG_LOADED':
setIsBalWidgetConfigLoaded(true)
break
case 'BAL_WIDGET_PARENT_NAVIGATE_TO':
window.open(event.data.content.href, event.data.content.target)
break
default:
break
}
Expand Down

0 comments on commit b476261

Please sign in to comment.