lint fixup

This commit is contained in:
Qstick
2021-11-21 18:57:22 -06:00
parent f19a81990b
commit 520d82ed20
163 changed files with 466 additions and 466 deletions

View File

@@ -20,7 +20,7 @@ class AddNotificationItem extends Component {
} = this.props;
this.props.onNotificationSelect({ implementation });
}
};
//
// Render

View File

@@ -46,7 +46,7 @@ class AddNotificationModalContentConnector extends Component {
onNotificationSelect = ({ implementation, name }) => {
this.props.selectNotificationSchema({ implementation, presetName: name });
this.props.onModalClose({ notificationSelected: true });
}
};
//
// Render

View File

@@ -17,7 +17,7 @@ class AddNotificationPresetMenuItem extends Component {
name,
implementation
});
}
};
//
// Render

View File

@@ -33,7 +33,7 @@ class EditNotificationModalConnector extends Component {
this.props.dispatchCancelTestNotification();
this.props.dispatchCancelSaveNotification();
this.props.onModalClose();
}
};
//
// Render

View File

@@ -42,19 +42,19 @@ class EditNotificationModalContentConnector extends Component {
onInputChange = ({ name, value }) => {
this.props.setNotificationValue({ name, value });
}
};
onFieldChange = ({ name, value }) => {
this.props.setNotificationFieldValue({ name, value });
}
};
onSavePress = () => {
this.props.saveNotification({ id: this.props.id });
}
};
onTestPress = () => {
this.props.testNotification({ id: this.props.id });
}
};
//
// Render

View File

@@ -27,26 +27,26 @@ class Notification extends Component {
onEditNotificationPress = () => {
this.setState({ isEditNotificationModalOpen: true });
}
};
onEditNotificationModalClose = () => {
this.setState({ isEditNotificationModalOpen: false });
}
};
onDeleteNotificationPress = () => {
this.setState({
isEditNotificationModalOpen: false,
isDeleteNotificationModalOpen: true
});
}
};
onDeleteNotificationModalClose= () => {
this.setState({ isDeleteNotificationModalOpen: false });
}
};
onConfirmDeleteNotification = () => {
this.props.onConfirmDeleteNotification(this.props.id);
}
};
//
// Render

View File

@@ -30,18 +30,18 @@ class Notifications extends Component {
onAddNotificationPress = () => {
this.setState({ isAddNotificationModalOpen: true });
}
};
onAddNotificationModalClose = ({ notificationSelected = false } = {}) => {
this.setState({
isAddNotificationModalOpen: false,
isEditNotificationModalOpen: notificationSelected
});
}
};
onEditNotificationModalClose = () => {
this.setState({ isEditNotificationModalOpen: false });
}
};
//
// Render

View File

@@ -33,7 +33,7 @@ class NotificationsConnector extends Component {
onConfirmDeleteNotification = (id) => {
this.props.deleteNotification({ id });
}
};
//
// Render