From 7435458a7babb13c64ff509ceed90b977f397222 Mon Sep 17 00:00:00 2001 From: nixocio Date: Wed, 14 Apr 2021 10:27:14 -0400 Subject: [PATCH] Remove not used code Remove not used code --- .../SyncStatusIndicator.jsx | 54 ------------------- .../components/SyncStatusIndicator/index.js | 1 - awx/ui_next/src/util/strings.js | 9 ---- awx/ui_next/src/util/strings.test.js | 17 +----- 4 files changed, 1 insertion(+), 80 deletions(-) delete mode 100644 awx/ui_next/src/components/SyncStatusIndicator/SyncStatusIndicator.jsx delete mode 100644 awx/ui_next/src/components/SyncStatusIndicator/index.js diff --git a/awx/ui_next/src/components/SyncStatusIndicator/SyncStatusIndicator.jsx b/awx/ui_next/src/components/SyncStatusIndicator/SyncStatusIndicator.jsx deleted file mode 100644 index 2ccf283576..0000000000 --- a/awx/ui_next/src/components/SyncStatusIndicator/SyncStatusIndicator.jsx +++ /dev/null @@ -1,54 +0,0 @@ -import React from 'react'; -import 'styled-components/macro'; -import styled, { keyframes } from 'styled-components'; -import { oneOf, string } from 'prop-types'; -import { CloudIcon } from '@patternfly/react-icons'; - -const COLORS = { - success: '--pf-global--palette--green-400', - syncing: '--pf-global--palette--green-400', - error: '--pf-global--danger-color--100', - disabled: '--pf-global--disabled-color--200', -}; - -const Pulse = keyframes` - from { - opacity: 0; - } - to { - opacity: 1.0; - } -`; - -const PulseWrapper = styled.div` - animation: ${Pulse} 1.5s linear infinite alternate; -`; - -export default function SyncStatusIndicator({ status, title }) { - const color = COLORS[status] || COLORS.disabled; - - if (status === 'syncing') { - return ( - <> - - {status} - - ); - } - - return ( - <> -