Skip to content

Commit e559919

Browse files
author
Derek Tor
committed
Changed paren styles to be more uniform
Enact-DCO-1.0-Signed-off-by: Derek Tor [email protected]
1 parent 5e10d78 commit e559919

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

graphql-example/src/App/App.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,19 @@ class AppBase extends Component {
7979
render () {
8080
const {index, userId, lists} = this.state;
8181

82-
return <ApolloProvider client={client}>
83-
<ActivityPanels {...this.props} onSelectBreadcrumb={this.handleSelectBreadcrumb} index={index}>
84-
<Search
85-
apiToken={config.token}
86-
onUserIdChange={this.onUserIdChange}
87-
onListSelectionChange={this.onListSelectionChange}
88-
onSearch={this.onSearch}
89-
/>
90-
<Detail userId={userId} lists={lists} />
91-
</ActivityPanels>
92-
</ApolloProvider>;
82+
return (
83+
<ApolloProvider client={client}>
84+
<ActivityPanels {...this.props} onSelectBreadcrumb={this.handleSelectBreadcrumb} index={index}>
85+
<Search
86+
apiToken={config.token}
87+
onUserIdChange={this.onUserIdChange}
88+
onListSelectionChange={this.onListSelectionChange}
89+
onSearch={this.onSearch}
90+
/>
91+
<Detail userId={userId} lists={lists} />
92+
</ActivityPanels>
93+
</ApolloProvider>
94+
);
9395
}
9496
}
9597

graphql-example/src/views/Search.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,17 @@ const SearchBase = kind({
3939
render: ({apiToken, onInputChange, onSearch, onRepoSelection, onFolSelection, onOrgSelection, ...rest}) => {
4040
delete rest.onUserIdChange;
4141
delete rest.onListSelectionChange;
42-
return (<Panel {...rest}>
43-
{!apiToken && <Notification open><p>Please set your github token in src/config.json.</p></Notification>}
44-
<Header title="Dev checks" type="compact" />
45-
<Input placeholder="Github id" onChange={onInputChange} dismissOnEnter />
46-
<IconButton onClick={onSearch} small={false} backgroundOpacity="transparent">search</IconButton>
47-
<FormCheckboxItem onToggle={onRepoSelection}>Repositories</FormCheckboxItem>
48-
<FormCheckboxItem onToggle={onFolSelection}>Followers</FormCheckboxItem>
49-
<FormCheckboxItem onToggle={onOrgSelection}>Organizations</FormCheckboxItem>
50-
</Panel>);
42+
return (
43+
<Panel {...rest}>
44+
{!apiToken && <Notification open><p>Please set your github token in src/config.json.</p></Notification>}
45+
<Header title="Dev checks" type="compact" />
46+
<Input placeholder="Github id" onChange={onInputChange} dismissOnEnter />
47+
<IconButton onClick={onSearch} small={false} backgroundOpacity="transparent">search</IconButton>
48+
<FormCheckboxItem onToggle={onRepoSelection}>Repositories</FormCheckboxItem>
49+
<FormCheckboxItem onToggle={onFolSelection}>Followers</FormCheckboxItem>
50+
<FormCheckboxItem onToggle={onOrgSelection}>Organizations</FormCheckboxItem>
51+
</Panel>
52+
);
5153
}
5254
});
5355

0 commit comments

Comments
 (0)