Skip to content

Commit 23cc6b9

Browse files
committed
prettier source code
1 parent 544fbea commit 23cc6b9

File tree

4 files changed

+8
-24
lines changed

4 files changed

+8
-24
lines changed

examples/RandomGifPair/src/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,15 @@ class RandomGifPair extends React.Component {
8282
<RandomGif
8383
showButton={false}
8484
apiKey={this.props.apiKey}
85-
namespacePrefix={`${
86-
this.componentManager.fullPath
87-
}/Gifs`}
85+
namespacePrefix={`${this.componentManager.fullPath}/Gifs`}
8886
appContainer={appContainer}
8987
/>
9088
</div>
9189
<div>
9290
<RandomGif
9391
showButton={false}
9492
apiKey={this.props.apiKey}
95-
namespacePrefix={`${
96-
this.componentManager.fullPath
97-
}/Gifs`}
93+
namespacePrefix={`${this.componentManager.fullPath}/Gifs`}
9894
appContainer={appContainer}
9995
/>
10096
</div>

examples/RandomGifPairPair/src/index.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,15 @@ class RandomGifPairPair extends React.Component {
8383
<RandomGifPair
8484
showButton={false}
8585
apiKey={this.props.apiKey}
86-
namespacePrefix={`${
87-
this.componentManager.fullPath
88-
}/GifPairs`}
86+
namespacePrefix={`${this.componentManager.fullPath}/GifPairs`}
8987
appContainer={this.componentManager.appContainer}
9088
/>
9189
</div>
9290
<div>
9391
<RandomGifPair
9492
showButton={false}
9593
apiKey={this.props.apiKey}
96-
namespacePrefix={`${
97-
this.componentManager.fullPath
98-
}/GifPairs`}
94+
namespacePrefix={`${this.componentManager.fullPath}/GifPairs`}
9995
appContainer={this.componentManager.appContainer}
10096
/>
10197
</div>
@@ -125,9 +121,7 @@ class RandomGifPairPair extends React.Component {
125121
* - There is an `ActionForwarder` outside this box already and will do all transformation job
126122
*/}
127123
<ActionForwarder
128-
namespacePrefix={`${
129-
this.componentManager.fullPath
130-
}/GifPairs`}
124+
namespacePrefix={`${this.componentManager.fullPath}/GifPairs`}
131125
pattern={RandomGifPairActionTypes.NEW_GIF}
132126
relativeDispatchPath="../../../../*"
133127
appContainer={this.componentManager.appContainer}
@@ -140,9 +134,7 @@ class RandomGifPairPair extends React.Component {
140134
* Thus, `relativeDispatchPath` should be "../*"
141135
*/}
142136
<ActionForwarder
143-
namespacePrefix={`${
144-
this.componentManager.fullPath
145-
}/GifPairs`}
137+
namespacePrefix={`${this.componentManager.fullPath}/GifPairs`}
146138
pattern={action =>
147139
action.type ===
148140
RandomGifPairActionTypes.LOADING_START ||

packages/core/src/AppContainerUtils.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import { ReducerOptions } from "./ReducerRegistry";
88
import { Reducer, Action } from "redux";
99
import { Task } from "redux-saga";
1010

11-
export function createAppContainer(
12-
options: AppContainerOptions
13-
): AppContainer;
11+
export function createAppContainer(options: AppContainerOptions): AppContainer;
1412
export function getAppContainer(
1513
componentInstance?: ManageableComponent
1614
): AppContainer;

packages/core/src/ComponentManagerRegistry.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ class ComponentManagerRegistry {
4040
register(manager) {
4141
if (this.componentManagerStore[manager.fullPath]) {
4242
throw new Error(
43-
`Try to register component to an existing path: ${
44-
manager.fullPath
45-
}`
43+
`Try to register component to an existing path: ${manager.fullPath}`
4644
);
4745
}
4846
this.componentManagerStore[manager.fullPath] = manager;

0 commit comments

Comments
 (0)