mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-15 04:21:49 -05:00
Move Switch into shared component directory and update tests
This commit is contained in:
@@ -4,12 +4,12 @@ import { withI18n } from '@lingui/react';
|
||||
import { t } from '@lingui/macro';
|
||||
import { Link } from 'react-router-dom';
|
||||
import {
|
||||
Switch as PFSwitch,
|
||||
DataListItem,
|
||||
DataListItemRow,
|
||||
DataListItemCells,
|
||||
DataListCell as PFDataListCell,
|
||||
} from '@patternfly/react-core';
|
||||
import Switch from '@components/Switch';
|
||||
|
||||
import styled from 'styled-components';
|
||||
|
||||
@@ -24,13 +24,6 @@ const DataListCell = styled(PFDataListCell)`
|
||||
}
|
||||
`;
|
||||
|
||||
const Switch = styled(PFSwitch)`
|
||||
display: flex;
|
||||
flex-wrap: no-wrap;
|
||||
/* workaround PF bug; used in calculating switch width: */
|
||||
--pf-c-switch__toggle-icon--Offset: 0.125rem;
|
||||
`;
|
||||
|
||||
function NotificationListItem(props) {
|
||||
const {
|
||||
canToggleNotifications,
|
||||
|
||||
Reference in New Issue
Block a user