interface: fix merge errors

This commit is contained in:
Liam Fitzgerald 2021-05-06 10:45:15 +10:00
parent 93de5a312b
commit 6c653e7ab9
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB
6 changed files with 14 additions and 16 deletions

View File

@ -1966,7 +1966,7 @@
"bundled": true
},
"onchange": {
"version": "https://registry.npmjs.org/onchange/-/onchange-7.1.0.tgz",
"version": "7.1.0",
"bundled": true,
"requires": {
"@blakeembrey/deque": "^1.0.5",
@ -2144,7 +2144,7 @@
"bundled": true
},
"@typescript-eslint/eslint-plugin": {
"version": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.22.1.tgz",
"version": "4.22.1",
"bundled": true,
"requires": {
"@typescript-eslint/experimental-utils": "4.22.1",
@ -2170,7 +2170,7 @@
}
},
"@typescript-eslint/parser": {
"version": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.22.1.tgz",
"version": "4.22.1",
"bundled": true,
"requires": {
"@typescript-eslint/scope-manager": "4.22.1",
@ -2245,7 +2245,7 @@
}
},
"babel-eslint": {
"version": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz",
"version": "10.1.0",
"bundled": true,
"requires": {
"@babel/code-frame": "^7.0.0",
@ -2377,7 +2377,7 @@
"bundled": true
},
"eslint-plugin-react": {
"version": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.23.2.tgz",
"version": "7.23.2",
"bundled": true,
"requires": {
"array-includes": "^3.1.3",
@ -2868,7 +2868,7 @@
}
},
"typescript": {
"version": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
"version": "4.2.4",
"bundled": true
},
"unbox-primitive": {

View File

@ -22,7 +22,6 @@ import useLocalState from '~/logic/state/local';
import useSettingsState, { selectCalmState } from '~/logic/state/settings';
import { Dropdown } from '~/views/components/Dropdown';
import ProfileOverlay from '~/views/components/ProfileOverlay';
import {useCopy} from '~/logic/lib/useCopy';
import { GraphContent} from '~/views/landscape/components/Graph/GraphContent';

View File

@ -19,7 +19,7 @@ import {
GraphNotificationContents, GraphNotifIndex
} from '~/types';
import Author from '~/views/components/Author';
import { GraphContentWide } from '~/views/landscape/components/Graph/GraphContentWide';
import { GraphContent } from '~/views/landscape/components/Graph/GraphContent';
import { PermalinkEmbed } from '../permalinks/embed';
import { Header } from './header';
@ -150,7 +150,7 @@ export const GraphNodeContent = ({ post, mod, index, hidden, association }) => {
}
return (
<TruncBox truncate={8}>
<GraphContentWide api={{} as any} post={post} showOurContact />
<GraphContent api={{} as any} contents={post.contents} showOurContact />
</TruncBox>
);
};

View File

@ -8,7 +8,7 @@ import { getSnippet } from '~/logic/lib/publish';
import { useGroupForAssoc } from '~/logic/state/group';
import Author from '~/views/components/Author';
import { MentionText } from '~/views/components/MentionText';
import { GraphContentWide } from '~/views/landscape/components/Graph/GraphContentWide';
import { GraphContent } from '~/views/landscape/components/Graph/GraphContent';
import ChatMessage from '../chat/components/ChatMessage';
import { NotePreviewContent } from '../publish/components/NotePreview';
import { PermalinkEmbed } from './embed';
@ -72,10 +72,10 @@ function TranscludedComment(props: {
group={group}
/>
<Box p="2">
<GraphContentWide
<GraphContent
api={api}
transcluded={transcluded}
post={comment.post}
contents={comment.post.contents}
showOurContact={false}
/>
</Box>

View File

@ -6,7 +6,6 @@ import GlobalApi from '~/logic/api/global';
import { roleForShip } from '~/logic/lib/group';
import { Contacts, GraphNode, Graph, Association, Unreads, Group, Post } from '@urbit/api';
import { getPermalinkForGraph } from '~/logic/lib/permalinks';
import {useQuery} from '~/logic/lib/useQuery';
import { GraphContent } from '~/views/landscape/components/Graph/GraphContent';
import { getComments, getLatestRevision } from '~/logic/lib/publish';
import { useCopy } from '~/logic/lib/useCopy';

View File

@ -3,7 +3,7 @@ import { Post } from '@urbit/api';
import React, { ReactElement } from 'react';
import styled from 'styled-components';
import GlobalApi from '~/logic/api/global';
import { GraphContentWide } from '~/views/landscape/components/Graph/GraphContentWide';
import { GraphContent } from '~/views/landscape/components/Graph/GraphContent';
const TruncatedBox = styled(Col)`
display: -webkit-box;
@ -31,9 +31,9 @@ const PostContent = (props: PostContentProps): ReactElement => {
textOverflow="ellipsis"
overflow="hidden"
>
<GraphContentWide
<GraphContent
transcluded={0}
post={post}
contents={post.contents}
api={api}
showOurContact
/>