mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-30 12:43:35 -05:00
Changed post to create in api.js. Removed capitalize text component in favor of css solution. Updates to empty list contents. Fixes padding on notifications list
This commit is contained in:
@@ -8,7 +8,6 @@ import {
|
||||
Badge,
|
||||
Switch
|
||||
} from '@patternfly/react-core';
|
||||
import CapitalizeText from '../CapitalizeText';
|
||||
|
||||
class NotificationListItem extends React.Component {
|
||||
constructor (props) {
|
||||
@@ -38,6 +37,10 @@ class NotificationListItem extends React.Component {
|
||||
errorTurnedOn
|
||||
} = this.props;
|
||||
|
||||
const capText = {
|
||||
textTransform: 'capitalize'
|
||||
};
|
||||
|
||||
return (
|
||||
<I18n>
|
||||
{({ i18n }) => (
|
||||
@@ -54,12 +57,11 @@ class NotificationListItem extends React.Component {
|
||||
</Link>
|
||||
</div>
|
||||
<Badge
|
||||
style={capText}
|
||||
className="pf-u-display-inline-flex"
|
||||
isRead
|
||||
>
|
||||
{' '}
|
||||
<CapitalizeText text={notificationType} />
|
||||
{' '}
|
||||
{notificationType}
|
||||
</Badge>
|
||||
</div>
|
||||
<div className="pf-c-data-list__cell" />
|
||||
|
||||
Reference in New Issue
Block a user