A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: create confirmationdialog
thecodrr948058147af4
diff --git a/apps/web/src/components/dialogs/index.js b/apps/web/src/components/dialogs/index.jsindex a16b11a0c..7e4263a51 100644--- a/apps/web/src/components/dialogs/index.js+++ b/apps/web/src/components/dialogs/index.js@@ -177,3 +177,23 @@ export const CreateNotebookDialog = props => {/>);};++export const ConfirmationDialog = props => {+ return (+ <Dialog+ open={props.open}+ title={props.title}+ icon={props.icon}+ content={+ <Box my={1}>+ <Text>{props.description}</Text>+ </Box>+ }+ positiveButton={{+ text: "Yes",+ click: props.onYes+ }}+ negativeButton={{ text: "No", click: props.onNo }}+ />+ );+};