Skip to content

Commit

Permalink
chore: rename to overlayId (#42)
Browse files Browse the repository at this point in the history
* chore: rename to overlayId

* Create new-dodos-watch.md

---------

Co-authored-by: Yongbeen Im <[email protected]>
  • Loading branch information
jgjgill and jungpaeng authored Jul 5, 2024
1 parent c0aab02 commit f3c8ef3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/new-dodos-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"overlay-kit": patch
---

chore: rename to overlayId
8 changes: 4 additions & 4 deletions packages/src/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ function open(controller: OverlayControllerComponent, options?: OpenOverlayOptio

return overlayId;
}
function close(id: string) {
dispatchOverlay({ type: 'CLOSE', overlayId: id });
function close(overlayId: string) {
dispatchOverlay({ type: 'CLOSE', overlayId });
}
function unmount(id: string) {
dispatchOverlay({ type: 'REMOVE', overlayId: id });
function unmount(overlayId: string) {
dispatchOverlay({ type: 'REMOVE', overlayId });
}
function closeAll() {
dispatchOverlay({ type: 'CLOSE_ALL' });
Expand Down

0 comments on commit f3c8ef3

Please sign in to comment.