aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-30 02:57:52 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-30 02:57:52 +0800
commit422e5e4dd734ce737bff42fb6a42ef07ad25f4b7 (patch)
tree584666d35dcbd95c28b77c3047b41e1ff78dd4d3 /packages/react-shared/src
parent2aea820d89962537cd6b987876f6aa31720c272f (diff)
downloaddexon-sol-tools-422e5e4dd734ce737bff42fb6a42ef07ad25f4b7.tar
dexon-sol-tools-422e5e4dd734ce737bff42fb6a42ef07ad25f4b7.tar.gz
dexon-sol-tools-422e5e4dd734ce737bff42fb6a42ef07ad25f4b7.tar.bz2
dexon-sol-tools-422e5e4dd734ce737bff42fb6a42ef07ad25f4b7.tar.lz
dexon-sol-tools-422e5e4dd734ce737bff42fb6a42ef07ad25f4b7.tar.xz
dexon-sol-tools-422e5e4dd734ce737bff42fb6a42ef07ad25f4b7.tar.zst
dexon-sol-tools-422e5e4dd734ce737bff42fb6a42ef07ad25f4b7.zip
Apply prettier
Diffstat (limited to 'packages/react-shared/src')
-rw-r--r--packages/react-shared/src/components/version_drop_down.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/react-shared/src/components/version_drop_down.tsx b/packages/react-shared/src/components/version_drop_down.tsx
index e4a2798ab..5ff4bed54 100644
--- a/packages/react-shared/src/components/version_drop_down.tsx
+++ b/packages/react-shared/src/components/version_drop_down.tsx
@@ -15,10 +15,7 @@ export class VersionDropDown extends React.Component<VersionDropDownProps, Versi
public render(): React.ReactNode {
return (
<div className="mx-auto" style={{ width: 120 }}>
- <Select
- value={this.props.selectedVersion}
- onChange={this._updateSelectedVersion.bind(this)}
- >
+ <Select value={this.props.selectedVersion} onChange={this._updateSelectedVersion.bind(this)}>
{this._renderDropDownItems()}
</Select>
</div>
@@ -26,7 +23,11 @@ export class VersionDropDown extends React.Component<VersionDropDownProps, Versi
}
private _renderDropDownItems(): React.ReactNode[] {
const items = _.map(this.props.versions, version => {
- return <MenuItem key={version} value={version}>v{version}</MenuItem>;
+ return (
+ <MenuItem key={version} value={version}>
+ v{version}
+ </MenuItem>
+ );
});
return items;
}