Skip to content

Commit 3f892fd

Browse files
yunwoo-yumanudelijungpaeng
authored
fix: add openAsync unmount parameters (#175)
Co-authored-by: Jonghyeon Ko <[email protected]> Co-authored-by: Yongbeen Im <[email protected]>
1 parent aaa86ec commit 3f892fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README-ko_kr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import { overlay } from 'overlay-kit';
5454

5555
<Button
5656
onClick={async () => {
57-
const result = await overlay.openAsync<boolean>(({ isOpen, close }) => (
57+
const result = await overlay.openAsync<boolean>(({ isOpen, close, unmount }) => (
5858
<Dialog
5959
open={isOpen}
6060
onConfirm={() => close(true)}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import { overlay } from 'overlay-kit';
5454

5555
<Button
5656
onClick={async () => {
57-
const result = await overlay.openAsync<boolean>(({ isOpen, close }) => (
57+
const result = await overlay.openAsync<boolean>(({ isOpen, close, unmount }) => (
5858
<Dialog
5959
open={isOpen}
6060
onConfirm={() => close(true)}

0 commit comments

Comments
 (0)