mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Removes unnecessary fragment elements. Fixes vertical alignment on notif row item. Bind notification list functions to constructor
This commit is contained in:
@@ -54,18 +54,16 @@ const OrganizationDetail = ({
|
||||
switch (currentTab) {
|
||||
case 'notifications':
|
||||
relatedTemplate = (
|
||||
<Fragment>
|
||||
<NotificationsList
|
||||
getNotifications={(id, reqParams) => api.getOrganizationNotifications(id, reqParams)}
|
||||
getSuccess={(id, reqParams) => api.getOrganizationNotificationSuccess(id, reqParams)}
|
||||
getError={(id, reqParams) => api.getOrganizationNotificationError(id, reqParams)}
|
||||
postSuccess={(id, data) => api.createOrganizationNotificationSuccess(id, data)}
|
||||
postError={(id, data) => api.createOrganizationNotificationError(id, data)}
|
||||
match={match}
|
||||
location={location}
|
||||
history={history}
|
||||
/>
|
||||
</Fragment>
|
||||
<NotificationsList
|
||||
getNotifications={(id, reqParams) => api.getOrganizationNotifications(id, reqParams)}
|
||||
getSuccess={(id, reqParams) => api.getOrganizationNotificationSuccess(id, reqParams)}
|
||||
getError={(id, reqParams) => api.getOrganizationNotificationError(id, reqParams)}
|
||||
postSuccess={(id, data) => api.createOrganizationNotificationSuccess(id, data)}
|
||||
postError={(id, data) => api.createOrganizationNotificationError(id, data)}
|
||||
match={match}
|
||||
location={location}
|
||||
history={history}
|
||||
/>
|
||||
);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user