|
@@ -1,10 +1,5 @@
|
|
|
import { createSelector } from 'reselect';
|
|
|
-import {
|
|
|
- FetchStatus,
|
|
|
- RootState,
|
|
|
- SchemasState,
|
|
|
- TopicName,
|
|
|
-} from 'redux/interfaces';
|
|
|
+import { RootState, SchemasState } from 'redux/interfaces';
|
|
|
import { createFetchingSelector } from 'redux/reducers/loader/selectors';
|
|
|
|
|
|
const schemasState = ({ schemas }: RootState): SchemasState => schemas;
|
|
@@ -18,7 +13,7 @@ const getSchemaListFetchingStatus = createFetchingSelector(
|
|
|
|
|
|
export const getIsSchemaListFetched = createSelector(
|
|
|
getSchemaListFetchingStatus,
|
|
|
- (status) => status === FetchStatus.fetched
|
|
|
+ (status) => status === 'fetched'
|
|
|
);
|
|
|
|
|
|
export const getSchemaList = createSelector(
|