about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/ui/components/column_link.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/mastodon/features/ui/components/column_link.js')
-rw-r--r--app/javascript/mastodon/features/ui/components/column_link.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/app/javascript/mastodon/features/ui/components/column_link.js b/app/javascript/mastodon/features/ui/components/column_link.js
index b845d1895..5425219c4 100644
--- a/app/javascript/mastodon/features/ui/components/column_link.js
+++ b/app/javascript/mastodon/features/ui/components/column_link.js
@@ -2,7 +2,7 @@ import React from 'react';
 import PropTypes from 'prop-types';
 import { Link } from 'react-router-dom';
 
-const ColumnLink = ({ icon, text, to, onClick, href, method }) => {
+const ColumnLink = ({ icon, text, to, href, method }) => {
   if (href) {
     return (
       <a href={href} className='column-link' data-method={method}>
@@ -10,20 +10,13 @@ const ColumnLink = ({ icon, text, to, onClick, href, method }) => {
         {text}
       </a>
     );
-  } else if (to) {
+  } else {
     return (
       <Link to={to} className='column-link'>
         <i className={`fa fa-fw fa-${icon} column-link__icon`} />
         {text}
       </Link>
     );
-  } else {
-    return (
-      <a onClick={onClick} className='column-link' role='button' tabIndex='0' data-method={method}>
-        <i className={`fa fa-fw fa-${icon} column-link__icon`} />
-        {text}
-      </a>
-    );
   }
 };
 
@@ -31,9 +24,9 @@ ColumnLink.propTypes = {
   icon: PropTypes.string.isRequired,
   text: PropTypes.string.isRequired,
   to: PropTypes.string,
-  onClick: PropTypes.func,
   href: PropTypes.string,
   method: PropTypes.string,
+  hideOnMobile: PropTypes.bool,
 };
 
 export default ColumnLink;