diff --git a/src/tags/TagsList.js b/src/tags/TagsList.js
index 914a1ba8..2c482b68 100644
--- a/src/tags/TagsList.js
+++ b/src/tags/TagsList.js
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { useEffect } from 'react';
import { splitEvery } from 'ramda';
import PropTypes from 'prop-types';
import Message from '../utils/Message';
@@ -7,78 +7,74 @@ import SearchField from '../utils/SearchField';
const { ceil } = Math;
const TAGS_GROUPS_AMOUNT = 4;
-const TagsList = (TagCard) => class TagsList extends React.Component {
- static propTypes = {
- filterTags: PropTypes.func,
- forceListTags: PropTypes.func,
- tagsList: PropTypes.shape({
- loading: PropTypes.bool,
- error: PropTypes.bool,
- filteredTags: PropTypes.arrayOf(PropTypes.string),
- }),
- match: PropTypes.object,
+const propTypes = {
+ filterTags: PropTypes.func,
+ forceListTags: PropTypes.func,
+ tagsList: PropTypes.shape({
+ loading: PropTypes.bool,
+ error: PropTypes.bool,
+ filteredTags: PropTypes.arrayOf(PropTypes.string),
+ }),
+ match: PropTypes.object,
+};
+
+const TagsList = (TagCard) => {
+ const TagListComp = ({ filterTags, forceListTags, tagsList, match }) => {
+ useEffect(() => {
+ forceListTags();
+ }, []);
+
+ const renderContent = () => {
+ if (tagsList.loading) {
+ return