mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 06:29:29 +01:00
refactor: use function declaration everywhere
This commit is contained in:
@@ -81,7 +81,7 @@ function getDialogData(type) {
|
||||
}
|
||||
}
|
||||
|
||||
export const showPasswordDialog = (type, validate) => {
|
||||
export function showPasswordDialog(type, validate) {
|
||||
const { title, icon, positiveButtonText } = getDialogData(type);
|
||||
return showDialog(perform => (
|
||||
<PasswordDialog
|
||||
@@ -93,4 +93,4 @@ export const showPasswordDialog = (type, validate) => {
|
||||
onDone={() => perform(true)}
|
||||
/>
|
||||
));
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user