Skip to content
This repository was archived by the owner on May 15, 2022. It is now read-only.

Commit 565975a

Browse files
Updated installation section in README, minor code formatting
1 parent 6bdd49e commit 565975a

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The demo is a deployed version of the latest production build of `./example`. Th
4646
## Installation
4747

4848
```
49-
npm i -S react-dat-gui
49+
npm i -S rohan-deshpande/react-dat-gui
5050
```
5151

5252
## Usage

build/react-dat-gui.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/src/react-dat-gui/components/DatBoolean.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ export default class DatBoolean extends Component {
4545
return (
4646
<li className="cr boolean">
4747
<label>
48-
<span className="label-text">{labelText}</span>
48+
<span className="label-text">
49+
{labelText}
50+
</span>
4951
<input
5052
type="checkbox"
5153
checked={this.state.value}

dev/src/react-dat-gui/components/DatSelect.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ export default class DatSelect extends Component {
6262
style={{ width: `${100 - labelWidth}%` }}
6363
onChange={this.handleChange}
6464
>
65-
{
66-
options.map((item, index) => <option key={index} value={item}>{item}</option>)
67-
}
65+
{options.map((item, index) => <option key={index} value={item}>{item}</option>)}
6866
</select>
6967
</label>
7068
</li>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-dat-gui",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "dat.GUI reimagined for React",
55
"main": "build/react-dat-gui.js",
66
"style": "build/react-dat-gui.css",

src/components/DatBoolean.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ export default class DatBoolean extends Component {
4545
return (
4646
<li className="cr boolean">
4747
<label>
48-
<span className="label-text">{labelText}</span>
48+
<span className="label-text">
49+
{labelText}
50+
</span>
4951
<input
5052
type="checkbox"
5153
checked={this.state.value}

src/components/DatSelect.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ export default class DatSelect extends Component {
6262
style={{ width: `${100 - labelWidth}%` }}
6363
onChange={this.handleChange}
6464
>
65-
{
66-
options.map((item, index) => <option key={index} value={item}>{item}</option>)
67-
}
65+
{options.map((item, index) => <option key={index} value={item}>{item}</option>)}
6866
</select>
6967
</label>
7068
</li>

0 commit comments

Comments
 (0)