Skip to content

Commit

Permalink
improve api
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed Jul 12, 2024
1 parent 271d92a commit 64c679f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 8.1.3 - 7/12/24
- [chore] improve confirm dialog api

# 8.1.2 - 7/12/24
- [chore] improve stories of confirm dialog

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reablocks",
"version": "8.1.2",
"version": "8.1.3",
"description": "Component library for React",
"scripts": {
"build": "npm run build:js && npm run build:styles && npm run rewrite:stories && npm run build:docs && npm run build:typedoc",
Expand Down
5 changes: 3 additions & 2 deletions src/layers/ConfirmDialog/useConfirmDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const useConfirmDialog = () => {
setDialogProps(null);
}, []);

const openConfirmDialog = useCallback(
const openDialog = useCallback(
(props: OpenConfirmDialogProps) => {
setDialogProps({
...props,
Expand All @@ -41,7 +41,8 @@ export const useConfirmDialog = () => {
}, [isOpen, dialogProps]);

return {
openConfirmDialog,
isOpen,
openDialog,
closeDialog,
DialogComponent
};
Expand Down

0 comments on commit 64c679f

Please sign in to comment.