mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
feat: allow changing confirm dialog width
This commit is contained in:
@@ -115,6 +115,7 @@ export function confirm({
|
||||
yesText,
|
||||
noText,
|
||||
yesAction,
|
||||
width,
|
||||
}) {
|
||||
return showDialog((Dialogs, perform) => (
|
||||
<Dialogs.Confirm
|
||||
@@ -122,6 +123,7 @@ export function confirm({
|
||||
subtitle={subtitle}
|
||||
message={message}
|
||||
yesText={yesText}
|
||||
width={width}
|
||||
noText={noText}
|
||||
onNo={() => perform(false)}
|
||||
onYes={() => {
|
||||
|
||||
@@ -8,6 +8,7 @@ function Confirm(props) {
|
||||
isOpen={true}
|
||||
title={props.title}
|
||||
icon={props.icon}
|
||||
width={props.width}
|
||||
description={props.subtitle}
|
||||
onClose={props.onNo}
|
||||
positiveButton={
|
||||
|
||||
Reference in New Issue
Block a user