Skip to content

Commit

Permalink
Fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kræn Hansen committed May 12, 2020
1 parent 20f644d commit c6436c1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
4 changes: 1 addition & 3 deletions src/ui/Greeting/Greeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ export const Greeting = ({
/>
<div className="Greeting__Actions">
<div className="Greeting__Action">
<Button onClick={onOpenLocalRealm}>
Open Realm file
</Button>
<Button onClick={onOpenLocalRealm}>Open Realm file</Button>
</div>
</div>
<div className="Greeting__DownloadDemo">
Expand Down
6 changes: 1 addition & 5 deletions src/ui/reusable/RealmLoadingComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ export abstract class RealmLoadingComponent<
// Reset the state that captures rejected certificates
this.certificateWasRejected = false;
// Get the realms from the ROS interface
this.realm = await this.openRealm(
realm,
schema,
schemaVersion,
);
this.realm = await this.openRealm(realm, schema, schemaVersion);

// Register change listeners
this.realm.addListener('change', this.onRealmChanged);
Expand Down
4 changes: 1 addition & 3 deletions src/windows/WindowOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ export interface IRealmBrowserWindowOptions extends IWindowOptions {
props: IRealmBrowserWindowProps;
}

export type WindowOptions =
| IGreetingWindowOptions
| IRealmBrowserWindowOptions;
export type WindowOptions = IGreetingWindowOptions | IRealmBrowserWindowOptions;

export function getWindowOptions(): WindowOptions {
// Strip away the "?" of the location.search
Expand Down
9 changes: 2 additions & 7 deletions src/windows/WindowProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
import { IGreetingWindowProps } from './GreetingWindow';
import { IRealmBrowserWindowProps } from './RealmBrowserWindow';

export {
IGreetingWindowProps,
IRealmBrowserWindowProps,
};
export { IGreetingWindowProps, IRealmBrowserWindowProps };

export type WindowProps =
| IGreetingWindowProps
| IRealmBrowserWindowProps;
export type WindowProps = IGreetingWindowProps | IRealmBrowserWindowProps;

0 comments on commit c6436c1

Please sign in to comment.