SonarPlugin > FlipperPlugin
Summary: Renaming: - `SonarPlugin` > `FlipperPlugin` - `SonarBasePlugin` > `FlipperBasePlugin` - `SonarDevicePlugin` > `FlipperDevicePlugin` Reviewed By: passy Differential Revision: D9851075 fbshipit-source-id: d59df6952a42eb493c86c38895216c9985f1e14b
This commit is contained in:
committed by
Facebook Github Bot
parent
47ec499973
commit
2e2924c979
@@ -6,9 +6,9 @@
|
||||
*/
|
||||
|
||||
import type {
|
||||
SonarPlugin,
|
||||
SonarDevicePlugin,
|
||||
SonarBasePlugin,
|
||||
FlipperPlugin,
|
||||
FlipperDevicePlugin,
|
||||
FlipperBasePlugin,
|
||||
} from '../plugin.js';
|
||||
import type BaseDevice from '../devices/BaseDevice.js';
|
||||
import type Client from '../Client.js';
|
||||
@@ -97,7 +97,7 @@ function PluginIcon({
|
||||
class PluginSidebarListItem extends Component<{
|
||||
onClick: () => void,
|
||||
isActive: boolean,
|
||||
plugin: Class<SonarBasePlugin<>>,
|
||||
plugin: Class<FlipperBasePlugin<>>,
|
||||
app?: ?string,
|
||||
}> {
|
||||
render() {
|
||||
@@ -185,7 +185,7 @@ class MainSidebar extends Component<MainSidebarProps> {
|
||||
{selectedDevice &&
|
||||
devicePlugins
|
||||
.filter(selectedDevice.supportsPlugin)
|
||||
.map((plugin: Class<SonarDevicePlugin<>>) => (
|
||||
.map((plugin: Class<FlipperDevicePlugin<>>) => (
|
||||
<PluginSidebarListItem
|
||||
key={plugin.id}
|
||||
isActive={plugin.id === selectedPlugin}
|
||||
@@ -212,10 +212,10 @@ class MainSidebar extends Component<MainSidebarProps> {
|
||||
<SidebarHeader>{client.query.app}</SidebarHeader>
|
||||
{plugins
|
||||
.filter(
|
||||
(p: Class<SonarPlugin<>>) =>
|
||||
(p: Class<FlipperPlugin<>>) =>
|
||||
client.plugins.indexOf(p.id) > -1,
|
||||
)
|
||||
.map((plugin: Class<SonarPlugin<>>) => (
|
||||
.map((plugin: Class<FlipperPlugin<>>) => (
|
||||
<PluginSidebarListItem
|
||||
key={plugin.id}
|
||||
isActive={
|
||||
|
||||
Reference in New Issue
Block a user