Skip to content

Commit

Permalink
modified example
Browse files Browse the repository at this point in the history
haradakunihiko committed Aug 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0e53d6e commit 49c1437
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/material-ui/src/containers/App.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import confirm from '../util/confirm';
import Theme from '../theme'

const handleOnClick = () => {
confirm({title: 'Are you sure?'}).then(() => {
confirm({confirmation: 'Are you sure?'}).then(() => {
console.log('proceed!') ;
}, () => {
console.log('cancel!');
2 changes: 1 addition & 1 deletion example/react-bootstrap/src/containers/App.js
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import React from 'react';
import { confirm, confirmComplex } from '../util/confirm';

const handleOnClick = async () => {
if (await confirm({title: 'Are your sure?'})) {
if (await confirm({confirmation: 'Are your sure?'})) {
console.log('yes');
} else {
console.log('no');
2 changes: 1 addition & 1 deletion example/ts-react-bootstrap-context/src/containers/App.tsx
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
import { confirm, confirmComplex } from '../util/confirm';

const handleOnClick = async () => {
if (await confirm({title: 'Are your sure?'})) {
if (await confirm({confirmation: 'Are your sure?'})) {
console.log('yes');
} else {
console.log('no');
2 changes: 1 addition & 1 deletion example/ts-react-bootstrap/src/containers/App.tsx
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
import { confirm, confirmComplex } from '../util/confirm';

const handleOnClick = async () => {
if (await confirm({ title: 'Are your sure?' })) {
if (await confirm({ confirmation: 'Are your sure?' })) {
console.log('yes');
} else {
console.log('no');

0 comments on commit 49c1437

Please sign in to comment.