diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2022-10-11 04:41:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 21:41:25 +0200 |
commit | d7873433256746c9b453aeca31520d68c6de4975 (patch) | |
tree | d6828f609ad8bbeea224a36d6f9aa678df50e505 /app/javascript/mastodon/features/ui/components/list_panel.js | |
parent | 05148e2c77ba7a2ac2cbf2569f60a64440e8a55a (diff) |
Hide list panel from nav bar in mobile layout (#19337)
Diffstat (limited to 'app/javascript/mastodon/features/ui/components/list_panel.js')
-rw-r--r-- | app/javascript/mastodon/features/ui/components/list_panel.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/javascript/mastodon/features/ui/components/list_panel.js b/app/javascript/mastodon/features/ui/components/list_panel.js index 411f62508..2f92a9254 100644 --- a/app/javascript/mastodon/features/ui/components/list_panel.js +++ b/app/javascript/mastodon/features/ui/components/list_panel.js @@ -1,12 +1,12 @@ import React from 'react'; import PropTypes from 'prop-types'; +import { createSelector } from 'reselect'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; -import { fetchLists } from 'mastodon/actions/lists'; import { connect } from 'react-redux'; -import { createSelector } from 'reselect'; -import { NavLink, withRouter } from 'react-router-dom'; -import Icon from 'mastodon/components/icon'; +import { withRouter } from 'react-router-dom'; +import { fetchLists } from 'mastodon/actions/lists'; +import ColumnLink from './column_link'; const getOrderedLists = createSelector([state => state.get('lists')], lists => { if (!lists) { @@ -42,11 +42,11 @@ class ListPanel extends ImmutablePureComponent { } return ( - <div> + <div className='list-panel'> <hr /> {lists.map(list => ( - <NavLink key={list.get('id')} className='column-link column-link--transparent' strict to={`/lists/${list.get('id')}`}><Icon className='column-link__icon' id='list-ul' fixedWidth />{list.get('title')}</NavLink> + <ColumnLink icon='list-ul' key={list.get('id')} strict text={list.get('title')} to={`/lists/${list.get('id')}`} transparent /> ))} </div> ); |