mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
Merge pull request #4864 from urbit/lf/group-feed-hide
interface: hide group feed if disabled
This commit is contained in:
commit
abe004044e
@ -52,9 +52,9 @@ export function SidebarListHeader(props: {
|
|||||||
|
|
||||||
const noun = (props.workspace?.type === 'messages') ? 'Messages' : 'Channels';
|
const noun = (props.workspace?.type === 'messages') ? 'Messages' : 'Channels';
|
||||||
|
|
||||||
let feedPath: any = '';
|
let feedPath: any = null;
|
||||||
if (metadata?.config && 'group' in metadata.config) {
|
if ('group' in metadata?.config && typeof metadata.config.group === 'string') {
|
||||||
feedPath = metadata.config.group ?? '';
|
feedPath = metadata.config.group;
|
||||||
}
|
}
|
||||||
|
|
||||||
const unreadCount = useHarkState(
|
const unreadCount = useHarkState(
|
||||||
@ -63,7 +63,7 @@ export function SidebarListHeader(props: {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
{( feedPath) ? (
|
{( !!feedPath) ? (
|
||||||
<Row
|
<Row
|
||||||
flexShrink={0}
|
flexShrink={0}
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
|
Loading…
Reference in New Issue
Block a user