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