diff --git a/pkg/interface/src/views/apps/links/components/LinkItem.tsx b/pkg/interface/src/views/apps/links/components/LinkItem.tsx index d1922b0f3..9579f4f54 100644 --- a/pkg/interface/src/views/apps/links/components/LinkItem.tsx +++ b/pkg/interface/src/views/apps/links/components/LinkItem.tsx @@ -148,17 +148,13 @@ export const LinkItem = (props: LinkItemProps): ReactElement => { - - - + /> diff --git a/pkg/interface/src/views/apps/publish/components/Notebook.tsx b/pkg/interface/src/views/apps/publish/components/Notebook.tsx index 37296ecd9..0c5f23302 100644 --- a/pkg/interface/src/views/apps/publish/components/Notebook.tsx +++ b/pkg/interface/src/views/apps/publish/components/Notebook.tsx @@ -5,13 +5,11 @@ import { Col, Box, Text, Row } from '@tlon/indigo-react'; import { Contacts, Rolodex, Groups, Associations, Graph, Association, Unreads } from '@urbit/api'; import { NotebookPosts } from './NotebookPosts'; -import GlobalApi from '~/logic/api/global'; import { useShowNickname } from '~/logic/lib/util'; import useContactState from '~/logic/state/contact'; import useGroupState from '~/logic/state/group'; interface NotebookProps { - api: GlobalApi; ship: string; book: string; graph: Graph; @@ -40,7 +38,6 @@ export function Notebook(props: NotebookProps & RouteComponentProps): ReactEleme const contacts = useContactState(state => state.contacts); const contact = contacts?.[`~${ship}`]; - console.log(association.resource); const showNickname = useShowNickname(contact); @@ -61,7 +58,6 @@ export function Notebook(props: NotebookProps & RouteComponentProps): ReactEleme host={ship} book={book} baseUrl={props.baseUrl} - api={props.api} group={group} /> diff --git a/pkg/interface/src/views/apps/publish/components/NotebookPosts.tsx b/pkg/interface/src/views/apps/publish/components/NotebookPosts.tsx index 801e34e38..b18e74eed 100644 --- a/pkg/interface/src/views/apps/publish/components/NotebookPosts.tsx +++ b/pkg/interface/src/views/apps/publish/components/NotebookPosts.tsx @@ -11,7 +11,6 @@ interface NotebookPostsProps { baseUrl: string; hideAvatars?: boolean; hideNicknames?: boolean; - api: GlobalApi; group: Group; } @@ -29,7 +28,6 @@ export function NotebookPosts(props: NotebookPostsProps) { contact={contacts[`~${node.post.author}`]} node={node} baseUrl={props.baseUrl} - api={props.api} group={props.group} /> ) diff --git a/pkg/interface/src/views/components/Author.tsx b/pkg/interface/src/views/components/Author.tsx index 33fc3df54..063061a91 100644 --- a/pkg/interface/src/views/components/Author.tsx +++ b/pkg/interface/src/views/components/Author.tsx @@ -11,7 +11,6 @@ import useSettingsState, {selectCalmState} from "~/logic/state/settings"; import useLocalState from "~/logic/state/local"; import OverlaySigil from './OverlaySigil'; import { Sigil } from '~/logic/lib/sigil'; -import GlobalApi from '~/logic/api/global'; import Timestamp from './Timestamp'; import useContactState from '~/logic/state/contact'; @@ -22,7 +21,6 @@ interface AuthorProps { children?: ReactNode; unread?: boolean; group: Group; - api?: GlobalApi; } // eslint-disable-next-line max-lines-per-function diff --git a/pkg/interface/src/views/components/CommentItem.tsx b/pkg/interface/src/views/components/CommentItem.tsx index ba85299a1..50493f6f6 100644 --- a/pkg/interface/src/views/components/CommentItem.tsx +++ b/pkg/interface/src/views/components/CommentItem.tsx @@ -74,7 +74,6 @@ export function CommentItem(props: CommentItemProps): ReactElement { date={post?.['time-sent']} unread={props.unread} group={group} - api={api} > {adminLinks}