diff --git a/CHANGELOG.md b/CHANGELOG.md index 76640313..45111036 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- [Fixed generic modal event warning](https://github.com/multiversx/mx-sdk-dapp-core-ui/pull/23) - [Added custom notification support](https://github.com/multiversx/mx-sdk-dapp-core-ui/pull/21) ## [[0.0.0-alpha.1](https://github.com/multiversx/mx-sdk-dapp-core-ui/pull/16)] - 2025-01-20 diff --git a/src/common/generic-modal/generic-modal.tsx b/src/common/generic-modal/generic-modal.tsx index 19bca7e3..58762f28 100644 --- a/src/common/generic-modal/generic-modal.tsx +++ b/src/common/generic-modal/generic-modal.tsx @@ -1,4 +1,4 @@ -import { Component, Prop, VNode, h } from '@stencil/core'; +import { Component, Event, EventEmitter, Prop, VNode, h } from '@stencil/core'; @Component({ tag: 'generic-modal', @@ -9,14 +9,14 @@ export class GenericModal { @Prop() body: VNode; @Prop() modalTitle: string | VNode; @Prop() modalSubtitle?: string | VNode; - @Prop() onClose: () => void; + @Event() close: EventEmitter; render() { return (