diff options
author | Starfall <us@starfall.systems> | 2023-04-14 19:22:47 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2023-04-14 19:22:47 -0500 |
commit | 4fe1689de43f4404eb9530fcfbcbfb26d6c1c13a (patch) | |
tree | 6811b845bb7f4966b10dcefa3dea404246f161c7 /app/javascript/mastodon/components/navigation_portal.js | |
parent | 65c1e53a32cabcdbb7bca57002bb0f6acdebe07e (diff) | |
parent | bed63f6dae0879ac840066b031229e0d139089cd (diff) |
Diffstat (limited to 'app/javascript/mastodon/components/navigation_portal.js')
-rw-r--r-- | app/javascript/mastodon/components/navigation_portal.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/app/javascript/mastodon/components/navigation_portal.js b/app/javascript/mastodon/components/navigation_portal.js deleted file mode 100644 index 45407be43..000000000 --- a/app/javascript/mastodon/components/navigation_portal.js +++ /dev/null @@ -1,35 +0,0 @@ -import React from 'react'; -import { Switch, Route, withRouter } from 'react-router-dom'; -import { showTrends } from 'mastodon/initial_state'; -import Trends from 'mastodon/features/getting_started/containers/trends_container'; -import AccountNavigation from 'mastodon/features/account/navigation'; - -const DefaultNavigation = () => ( - <> - {showTrends && ( - <> - <div className='flex-spacer' /> - <Trends /> - </> - )} - </> -); - -export default @withRouter -class NavigationPortal extends React.PureComponent { - - render () { - return ( - <Switch> - <Route path='/@:acct' exact component={AccountNavigation} /> - <Route path='/@:acct/tagged/:tagged?' exact component={AccountNavigation} /> - <Route path='/@:acct/with_replies' exact component={AccountNavigation} /> - <Route path='/@:acct/followers' exact component={AccountNavigation} /> - <Route path='/@:acct/following' exact component={AccountNavigation} /> - <Route path='/@:acct/media' exact component={AccountNavigation} /> - <Route component={DefaultNavigation} /> - </Switch> - ); - } - -} |