Skip to content

Commit

Permalink
Use self-referenced imports in web
Browse files Browse the repository at this point in the history
  • Loading branch information
nisargjhaveri committed Aug 31, 2024
1 parent 9336ce8 commit 12d5037
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions src/web/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import { Link } from '@fluentui/react/lib/Link';
import { Toggle } from '@fluentui/react/lib/Toggle';
import { PrimaryButton } from '@fluentui/react/lib/Button';
import { NeutralColors } from '@fluentui/theme';
import { Device } from './device';

import { RemoteAdbDevice } from '../../client/RemoteAdbDevice';
import { UsbDeviceManager } from '../../client/UsbDeviceManager';
import { ServerConnection } from '../../client/ServerConnection';
import { RemoteAdbDevice } from 'remote-adb/client';
import { UsbDeviceManager } from 'remote-adb/client';
import { ServerConnection } from 'remote-adb/client';

import { initializeIcons } from '@fluentui/font-icons-mdl2';
import { Device } from './device';
import { Status } from './status';

import { initializeIcons } from '@fluentui/font-icons-mdl2';
initializeIcons();

const enum StoredItemKeys {
Expand Down
8 changes: 4 additions & 4 deletions src/web/components/device.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { Icon } from '@fluentui/react/lib/Icon';
import { MessageBar, MessageBarType } from '@fluentui/react/lib/MessageBar';
import { DefaultButton, PrimaryButton } from '@fluentui/react/lib/Button';
import { NeutralColors } from '@fluentui/theme';
import bytes from 'bytes';

import logger from '../../common/logger';
import { RemoteAdbDevice } from '../../client/RemoteAdbDevice';
import { ServerConnection } from '../../client/ServerConnection';
import logger from 'remote-adb/logger';
import { RemoteAdbDevice } from 'remote-adb/client';
import { ServerConnection } from 'remote-adb/client';

import * as bytes from 'bytes';

function CommunicationSpeed(props: {device: RemoteAdbDevice}) {
let device: RemoteAdbDevice = props.device;
Expand Down
2 changes: 1 addition & 1 deletion src/web/components/status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MessageBar, MessageBarType } from '@fluentui/react/lib/MessageBar';
import { DefaultButton, MessageBarButton, PrimaryButton } from '@fluentui/react/lib/Button';
import { Separator } from '@fluentui/react/lib/Separator';

import { ServerStatus, ServerConnection } from '../../client/ServerConnection';
import { ServerStatus, ServerConnection } from 'remote-adb/client';


function LoginDialog(props: {showDialog: boolean, setShowDialog: Dispatch<SetStateAction<Boolean>>, onLoginSuccess: () => void, serverConnection: ServerConnection}) {
Expand Down

0 comments on commit 12d5037

Please sign in to comment.