Skip to content

Commit 7482997

Browse files
author
hoppe
committed
adjust some code style
1 parent 0bc0409 commit 7482997

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

packages/react/src/ui-react/environment/browser-environment.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export interface BrowserEnvironment
3636
opts?: FormControlOptions
3737
): JSX.Element;
3838

39-
getFormLayout<V extends FormValues>(layoutType?: FormLayoutType): React.FC<LayoutProps<V>>;
39+
getFormLayout<V extends FormValues>(
40+
layoutType?: FormLayoutType
41+
): React.FC<LayoutProps<V>>;
4042
}
4143

4244
export interface BrowserEnvironmentConfig extends EnvironmentConfig {
@@ -58,7 +60,8 @@ export class DefaultBrowserEnvironment
5860
BrowserEnvironmentConfig,
5961
BrowserDependencyFactories
6062
>
61-
implements BrowserEnvironment {
63+
implements BrowserEnvironment
64+
{
6265
name = EnvironmentName.Browser;
6366

6467
async beforeInit(): Promise<void> {
@@ -90,7 +93,9 @@ export class DefaultBrowserEnvironment
9093
/**
9194
* Get the form control for a given parameter
9295
*/
93-
getFormLayout<V extends FormValues>(layoutType: FormLayoutType = "list"): React.FC<LayoutProps<V>> {
96+
getFormLayout<V extends FormValues>(
97+
layoutType: FormLayoutType = "list"
98+
): React.FC<LayoutProps<V>> {
9499
const provider = this.getInjectable<FormLayoutProvider>(
95100
BrowserDependencyName.FormLayoutProvider
96101
);

packages/react/src/ui-react/environment/mock-browser-environment.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import { initFluentIcons } from "./environment-util";
2020
*/
2121
export class MockBrowserEnvironment
2222
extends MockEnvironment<BrowserEnvironmentConfig>
23-
implements BrowserEnvironment {
23+
implements BrowserEnvironment
24+
{
2425
isMockBrowserEnvironment: boolean = true;
2526

2627
async beforeInit(): Promise<void> {
@@ -53,7 +54,9 @@ export class MockBrowserEnvironment
5354
}
5455

5556
// TODO: This code shouldn't need to be duplicated from DefaultBrowserEnvironment
56-
getFormLayout<V extends FormValues>(layoutType: FormLayoutType = "list"): React.FC<LayoutProps<V>> {
57+
getFormLayout<V extends FormValues>(
58+
layoutType: FormLayoutType = "list"
59+
): React.FC<LayoutProps<V>> {
5760
const provider = this.getInjectable<FormLayoutProvider>(
5861
BrowserDependencyName.FormLayoutProvider
5962
);

0 commit comments

Comments
 (0)