Skip to content

Commit 01ed79a

Browse files
authored
Merge pull request #5 from SafdarJamal/feature/firebase-v9
Upgrade to Firebase v9
2 parents 918b809 + 0918b7a commit 01ed79a

File tree

18 files changed

+867
-457
lines changed

18 files changed

+867
-457
lines changed

package-lock.json

Lines changed: 820 additions & 412 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
},
99
"dependencies": {
1010
"@testing-library/jest-dom": "^5.16.2",
11-
"@testing-library/react": "^12.1.3",
11+
"@testing-library/react": "^12.1.4",
1212
"@testing-library/user-event": "^13.5.0",
13-
"firebase": "^8.10.1",
13+
"firebase": "^9.6.8",
1414
"prop-types": "^15.8.1",
1515
"react": "^17.0.2",
1616
"react-dom": "^17.0.2",

src/actions/user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { SET_USER, REMOVE_USER } from '../constants/actionTypes';
22

33
const setUser = payload => ({
44
type: SET_USER,
5-
payload
5+
payload,
66
});
77

88
const removeUser = () => ({
9-
type: REMOVE_USER
9+
type: REMOVE_USER,
1010
});
1111

1212
export { setUser, removeUser };

src/components/Home/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Home = ({ user }) => {
1616
};
1717

1818
Home.propTypes = {
19-
user: PropTypes.object.isRequired
19+
user: PropTypes.object.isRequired,
2020
};
2121

2222
export default Home;

src/components/SignIn/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SignIn.propTypes = {
3434
password: PropTypes.string.isRequired,
3535
handleChange: PropTypes.func.isRequired,
3636
handleSubmit: PropTypes.func.isRequired,
37-
error: PropTypes.object
37+
error: PropTypes.object,
3838
};
3939

4040
export default SignIn;

src/components/SignOut/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const SignOut = ({ handleSignOut }) => {
66
};
77

88
SignOut.propTypes = {
9-
handleSignOut: PropTypes.func.isRequired
9+
handleSignOut: PropTypes.func.isRequired,
1010
};
1111

1212
export default SignOut;

src/components/SignUp/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const SignUp = ({
88
password,
99
handleChange,
1010
handleSubmit,
11-
error
11+
error,
1212
}) => {
1313
return (
1414
<div>
@@ -60,7 +60,7 @@ SignUp.propTypes = {
6060
password: PropTypes.string.isRequired,
6161
handleChange: PropTypes.func.isRequired,
6262
handleSubmit: PropTypes.func.isRequired,
63-
error: PropTypes.object
63+
error: PropTypes.object,
6464
};
6565

6666
export default SignUp;

src/containers/HomeContainer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class HomeContainer extends Component {
1010
}
1111

1212
const mapStateToProps = state => ({
13-
user: state.user
13+
user: state.user,
1414
});
1515

1616
export default connect(mapStateToProps)(HomeContainer);

src/containers/SignInContainer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class SignInContainer extends Component {
1010
state = {
1111
email: '',
1212
password: '',
13-
error: null
13+
error: null,
1414
};
1515

1616
handleChange = e => {

src/containers/SignUpContainer/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class SignUpContainer extends Component {
1212
lastName: '',
1313
email: '',
1414
password: '',
15-
error: null
15+
error: null,
1616
};
1717

1818
handleChange = e => {
@@ -31,7 +31,7 @@ class SignUpContainer extends Component {
3131
firebase.addUser(response.user.uid, {
3232
firstName,
3333
lastName,
34-
email
34+
email,
3535
})
3636
)
3737
.then(() => firebase.getUser(firebase.auth.currentUser.uid))

0 commit comments

Comments
 (0)