interface: remove deprecated types and props

This commit is contained in:
Matilde Park 2021-03-10 20:23:24 -05:00
parent c0d68120c1
commit 41556cd563
3 changed files with 3 additions and 10 deletions

View File

@ -9,15 +9,13 @@ import {
StatelessAsyncButton as AsyncButton,
StatelessAsyncButton
} from './StatelessAsyncButton';
import { Notebooks, Graphs, Inbox } from '@urbit/api';
import { Graphs } from '@urbit/api';
import useGraphState from '~/logic/state/graph';
interface UnjoinedResourceProps {
association: Association;
api: GlobalApi;
baseUrl: string;
notebooks: Notebooks;
inbox: Inbox;
}
function isJoined(path: string) {
@ -31,7 +29,7 @@ function isJoined(path: string) {
}
export function UnjoinedResource(props: UnjoinedResourceProps) {
const { api, notebooks, inbox } = props;
const { api } = props;
const history = useHistory();
const rid = props.association.resource;
const appName = props.association['app-name'];
@ -52,7 +50,7 @@ export function UnjoinedResource(props: UnjoinedResourceProps) {
if (isJoined(rid)({ graphKeys })) {
history.push(`${props.baseUrl}/resource/${app}${rid}`);
}
}, [props.association, inbox, graphKeys, notebooks]);
}, [props.association, graphKeys]);
return (
<Center p={6}>

View File

@ -37,7 +37,6 @@ interface SidebarProps {
api: GlobalApi;
selected?: string;
selectedGroup?: string;
includeUnmanaged?: boolean;
apps: SidebarAppConfigs;
baseUrl: string;
mobileHide?: boolean;

View File

@ -5,7 +5,6 @@ import { Associations } from '@urbit/api/metadata';
import { Sidebar } from './Sidebar/Sidebar';
import GlobalApi from '~/logic/api/global';
import GlobalSubscription from '~/logic/subscription/global';
import { useGraphModule } from './Sidebar/Apps';
import { Body } from '~/views/components/Body';
import { Workspace } from '~/types/workspace';
@ -16,14 +15,11 @@ import ErrorBoundary from '~/views/components/ErrorBoundary';
interface SkeletonProps {
children: ReactNode;
recentGroups: string[];
linkListening: Set<Path>;
selected?: string;
selectedApp?: AppName;
baseUrl: string;
mobileHide?: boolean;
api: GlobalApi;
subscription: GlobalSubscription;
includeUnmanaged: boolean;
workspace: Workspace;
}