forked from glitch-soc/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port 1b70d7e to glitch-soc Co-authored-by: Claire <claire.github-309c@sitedethib.com> Signed-off-by: Claire <claire.github-309c@sitedethib.com>
- Loading branch information
1 parent
245513d
commit d6eacb7
Showing
51 changed files
with
414 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
app/javascript/flavours/glitch/components/navigation_portal.jsx
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
app/javascript/flavours/glitch/components/navigation_portal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Switch, Route } from 'react-router-dom'; | ||
|
||
import AccountNavigation from 'flavours/glitch/features/account/navigation'; | ||
import Trends from 'flavours/glitch/features/getting_started/containers/trends_container'; | ||
import { showTrends } from 'flavours/glitch/initial_state'; | ||
|
||
const DefaultNavigation: React.FC = () => | ||
showTrends ? ( | ||
<> | ||
<div className='flex-spacer' /> | ||
<Trends /> | ||
</> | ||
) : null; | ||
|
||
export const NavigationPortal: React.FC = () => ( | ||
<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> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.