mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
Merge pull request #4866 from urbit/lf/fix-sidebar
interface: sidebar fix && images in markdown
This commit is contained in:
commit
d018057600
@ -346,6 +346,11 @@ const renderers = {
|
||||
);
|
||||
},
|
||||
'graph-mention': ({ ship }) => <Mention api={{} as any} ship={ship} />,
|
||||
'image': ({ url }) => (
|
||||
<Box mt="1" mb="2" flexShrink={0}>
|
||||
<RemoteContent key={url} url={url} />
|
||||
</Box>
|
||||
),
|
||||
'graph-url': ({ url }) => (
|
||||
<Box mt="1" mb="2" flexShrink={0}>
|
||||
<RemoteContent key={url} url={url} />
|
||||
|
@ -53,8 +53,8 @@ export function SidebarListHeader(props: {
|
||||
const noun = (props.workspace?.type === 'messages') ? 'Messages' : 'Channels';
|
||||
|
||||
let feedPath: any = null;
|
||||
if ('group' in metadata?.config && typeof metadata.config.group === 'string') {
|
||||
feedPath = metadata.config.group;
|
||||
if (metadata.config && 'group' in metadata?.config && 'resource' in metadata.config.group) {
|
||||
feedPath = metadata.config.group.resource;
|
||||
}
|
||||
|
||||
const unreadCount = useHarkState(
|
||||
|
Loading…
Reference in New Issue
Block a user