Skip to content

Commit 7274ccf

Browse files
committed
Fix typo and change name of file and some config in package.json
1 parent 94d5143 commit 7274ccf

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

example/twitter-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"prop-types": "^15.5.10"
1010
},
1111
"devDependencies": {
12-
"react-scripts": "1.0.11"
12+
"react-scripts": "1.0.13"
1313
},
1414
"scripts": {
1515
"start": "react-scripts start",

example/twitter-example/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from 'react';
2-
import TwitterLogin from 'react-twitter-login/src/index';
2+
import TwitterLogin from 'react-twitter-auth/lib/react-twitter-login-component.js';
33

44
class App extends Component {
55

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"version": "0.0.1",
44
"description": "A Twitter loging component",
55
"scripts": {
6-
"build:develop": "cross-env NODE_ENV=development webpack src/index.js lib/react-twitter-login-component.js",
7-
"build:production": "cross-env NODE_ENV=production webpack src/index.js lib/react-twitter-login-component.min.js",
6+
"build:develop": "cross-env NODE_ENV=development webpack src/index.js lib/react-twitter-auth-component.js",
7+
"build:production": "cross-env NODE_ENV=production webpack src/index.js lib/react-twitter-auth-component.min.js",
88
"lint": "eslint src/ --fix",
99
"clean": "rm -rf node_modules && rm -rf bin"
1010
},
11-
"main": "lib/react-twitter-login-component.js",
11+
"main": "lib/react-twitter-auth-component.js",
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/GenFirst/react-twitter-login.git"
14+
"url": "git+https://github.com/GenFirst/react-twitter-auth.git"
1515
},
1616
"keywords": [
1717
"React",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class TwitterLogin extends Component {
9696
onClick: this.onButtonClick,
9797
style: this.props.style,
9898
disabled: this.props.disabled,
99-
className: this.props,className,
99+
className: this.props.className,
100100
}, this.props.children ? this.props.children : this.props.text
101101
);
102102
return twitterButton;

0 commit comments

Comments
 (0)