mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 01:09:55 +00:00
[Glitch] Split timeline_preview setting into more granular settings
Port 2d2c525097 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -41,7 +41,8 @@ import { ColumnLink } from 'flavours/glitch/features/ui/components/column_link';
|
||||
import { useBreakpoint } from 'flavours/glitch/features/ui/hooks/useBreakpoint';
|
||||
import { useIdentity } from 'flavours/glitch/identity_context';
|
||||
import {
|
||||
timelinePreview,
|
||||
localLiveFeedAccess,
|
||||
remoteLiveFeedAccess,
|
||||
trendsEnabled,
|
||||
me,
|
||||
} from 'flavours/glitch/initial_state';
|
||||
@@ -285,10 +286,16 @@ export const NavigationPanel: React.FC<{ multiColumn?: boolean }> = ({
|
||||
/>
|
||||
)}
|
||||
|
||||
{(signedIn || timelinePreview) && (
|
||||
{(signedIn ||
|
||||
localLiveFeedAccess === 'public' ||
|
||||
remoteLiveFeedAccess === 'public') && (
|
||||
<ColumnLink
|
||||
transparent
|
||||
to='/public/local'
|
||||
to={
|
||||
signedIn || localLiveFeedAccess === 'public'
|
||||
? '/public/local'
|
||||
: '/public/remote'
|
||||
}
|
||||
icon='globe'
|
||||
iconComponent={PublicIcon}
|
||||
isActive={isFirehoseActive}
|
||||
|
||||
Reference in New Issue
Block a user