diff --git a/app/soapbox/features/lists/index.tsx b/app/soapbox/features/lists/index.tsx index 5b9a0e936..078fbe180 100644 --- a/app/soapbox/features/lists/index.tsx +++ b/app/soapbox/features/lists/index.tsx @@ -2,16 +2,17 @@ import React from 'react'; import { useEffect } from 'react'; import { defineMessages, useIntl, FormattedMessage } from 'react-intl'; import { useDispatch } from 'react-redux'; +import { Link } from 'react-router-dom'; import { createSelector } from 'reselect'; import { fetchLists } from 'soapbox/actions/lists'; +import Icon from 'soapbox/components/icon'; import ScrollableList from 'soapbox/components/scrollable_list'; import { Spinner } from 'soapbox/components/ui'; import { CardHeader, CardTitle } from 'soapbox/components/ui'; import { useAppSelector } from 'soapbox/hooks'; import Column from '../ui/components/column'; -import ColumnLink from '../ui/components/column_link'; import NewListForm from './components/new_list_form'; @@ -66,9 +67,12 @@ const Lists: React.FC = () => { scrollKey='lists' emptyMessage={emptyMessage} > - {lists.map((list: any) => - , - )} + {lists.map((list: any) => ( + + + {list.get('title')} + + ))} ); diff --git a/app/soapbox/features/ui/components/column_link.js b/app/soapbox/features/ui/components/column_link.js deleted file mode 100644 index 9dbdf4c64..000000000 --- a/app/soapbox/features/ui/components/column_link.js +++ /dev/null @@ -1,39 +0,0 @@ -import PropTypes from 'prop-types'; -import React from 'react'; -import { Link } from 'react-router-dom'; - -import Icon from 'soapbox/components/icon'; - -const ColumnLink = ({ icon, src, text, to, href, method, badge }) => { - const badgeElement = typeof badge !== 'undefined' ? {badge} : null; - - if (href) { - return ( - - - {text} - {badgeElement} - - ); - } else { - return ( - - - {text} - {badgeElement} - - ); - } -}; - -ColumnLink.propTypes = { - icon: PropTypes.string, - src: PropTypes.string, - text: PropTypes.string.isRequired, - to: PropTypes.string, - href: PropTypes.string, - method: PropTypes.string, - badge: PropTypes.node, -}; - -export default ColumnLink;