Use BaseDevice from flipper-frontend-core in flipper-ui-core

Summary: Use BasDevice definition from flipper-frontend-core in flipper-ui-core and remove the redundant definition from flipper-ui-core

Reviewed By: lblasa

Differential Revision: D37234785

fbshipit-source-id: 6e768090a197c1d2c49cb1cd573acea12fb65d24
This commit is contained in:
Andrey Goncharov
2022-06-20 12:18:40 -07:00
committed by Facebook GitHub Bot
parent ef5fa275a3
commit fd380a4c1e
32 changed files with 29 additions and 462 deletions

View File

@@ -101,16 +101,12 @@ export async function handleDeeplink(
const selectedClient = getAllClients(store.getState().connections).find(
(c) =>
c.query.app === match[0] &&
// TODO: Remove at the end of migration
// @ts-expect-error
(selectedDevice == null || c.device === selectedDevice),
);
store.dispatch(
selectPlugin({
selectedAppId: selectedClient?.id,
// TODO: Remove at the end of migration
// @ts-expect-error
selectedDevice: selectedClient ? selectedClient.device : selectedDevice,
selectedPlugin: match[1],
deepLinkPayload,