mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
interface: remove deprecated types and props
This commit is contained in:
parent
c0d68120c1
commit
41556cd563
@ -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}>
|
||||
|
@ -37,7 +37,6 @@ interface SidebarProps {
|
||||
api: GlobalApi;
|
||||
selected?: string;
|
||||
selectedGroup?: string;
|
||||
includeUnmanaged?: boolean;
|
||||
apps: SidebarAppConfigs;
|
||||
baseUrl: string;
|
||||
mobileHide?: boolean;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user