refactor: use function declaration everywhere

This commit is contained in:
thecodrr
2020-03-26 11:58:10 +05:00
parent 617c7b04c4
commit 88bd6e99ab
42 changed files with 434 additions and 451 deletions

View File

@@ -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)}
/>
));
};
}