GraphContent: use correct type for code content

This commit is contained in:
Matilde Park 2021-05-28 17:21:36 -04:00
parent 88f02e6115
commit 0d38218c0a

View File

@ -13,7 +13,7 @@ import {
Tr,
Td
} from '@tlon/indigo-react';
import { Content } from '@urbit/api';
import { Content, CodeContent } from '@urbit/api';
import _ from 'lodash';
import { BlockContent, Content as AstContent, Parent, Root } from 'ts-mdast';
import React from 'react';
@ -23,7 +23,6 @@ import { PropFunc } from '~/types';
import { PermalinkEmbed } from '~/views/apps/permalinks/embed';
import { Mention } from '~/views/components/MentionText';
import RemoteContent from '~/views/components/RemoteContent';
import CodeContent from './content/code';
import { parseTall, parseWide } from './parse';
type StitchMode = 'merge' | 'block' | 'inline';