mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
hide positive button on dialog if no func provided
This commit is contained in:
@@ -130,7 +130,7 @@ export const Dialog = ({context = 'global'}) => {
|
||||
|
||||
<DialogButtons
|
||||
onPressNegative={onNegativePress}
|
||||
onPressPositive={onPressPositive}
|
||||
onPressPositive={dialogInfo.positivePress && onPressPositive}
|
||||
positiveTitle={dialogInfo.positiveText}
|
||||
negativeTitle={dialogInfo.negativeText}
|
||||
positiveType={dialogInfo.positiveType}
|
||||
|
||||
Reference in New Issue
Block a user