수기발행
This commit is contained in:
20
src/widgets/show-alert/index.tsx
Normal file
20
src/widgets/show-alert/index.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Dialog } from '@/shared/ui/dialogs/dialog';
|
||||
import { overlay } from 'overlay-kit';
|
||||
|
||||
export const showAlert = (msg: string) => {
|
||||
overlay.open(({
|
||||
isOpen,
|
||||
close,
|
||||
unmount
|
||||
}) => {
|
||||
return (
|
||||
<Dialog
|
||||
afterLeave={ unmount }
|
||||
open={ isOpen }
|
||||
onClose={ close }
|
||||
message={ msg }
|
||||
buttonLabel={ ['확인'] }
|
||||
/>
|
||||
);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user