From 1fa2b9911f1b1f80ff246140758fc6a7cd09df60 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 16 May 2022 22:27:07 -0500 Subject: move SearchStatusIcon --- .../src/components/Search/List/SearchStatusIcon.js | 35 ---------------------- src/web/src/components/Search/SearchStatusIcon.js | 35 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 src/web/src/components/Search/List/SearchStatusIcon.js create mode 100644 src/web/src/components/Search/SearchStatusIcon.js (limited to 'src') diff --git a/src/web/src/components/Search/List/SearchStatusIcon.js b/src/web/src/components/Search/List/SearchStatusIcon.js deleted file mode 100644 index c5de5d72..00000000 --- a/src/web/src/components/Search/List/SearchStatusIcon.js +++ /dev/null @@ -1,35 +0,0 @@ -import React from 'react'; - -import { Icon, Popup } from 'semantic-ui-react'; - -// as of 4.5.2, states are: -// transient: -// None, Requested, InProgress -// terminal: -// good: Completed, [TimedOut | ResponseLimitReached | FileLimitReached] -// bad: Completed, [Errored | Cancelled] - -const getIcon = ({ state, ...props }) => { - switch (state) { - case 'None': - case 'Requested': - return - case 'InProgress': - return - case 'Completed, TimedOut': - case 'Completed, ResponseLimitReached': - case 'Completed, FileLimitReached': - return - case 'Completed, Cancelled': - return - case 'Completed, Errored': - return - default: - return - } -} - -const SearchStatusIcon = ({ state, ...props }) => - - -export default SearchStatusIcon; \ No newline at end of file diff --git a/src/web/src/components/Search/SearchStatusIcon.js b/src/web/src/components/Search/SearchStatusIcon.js new file mode 100644 index 00000000..9ade1daf --- /dev/null +++ b/src/web/src/components/Search/SearchStatusIcon.js @@ -0,0 +1,35 @@ +import React from 'react'; + +import { Icon, Popup } from 'semantic-ui-react'; + +// as of 4.5.2, states are: +// transient: +// None, Requested, InProgress +// terminal: +// good: Completed, [TimedOut | ResponseLimitReached | FileLimitReached] +// bad: Completed, [Errored | Cancelled] + +const getIcon = ({ state, ...props }) => { + switch (state) { + case 'None': + case 'Requested': + return + case 'InProgress': + return + case 'Completed, TimedOut': + case 'Completed, ResponseLimitReached': + case 'Completed, FileLimitReached': + return + case 'Completed, Cancelled': + return + case 'Completed, Errored': + return + default: + return + } +} + +const SearchStatusIcon = ({ state, ...props }) => + + +export default SearchStatusIcon; \ No newline at end of file -- cgit v1.2.3