Skip to content

Commit c7afa91

Browse files
committed
add permissions' component | add fcm reducer
1 parent 33868dc commit c7afa91

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from "react";
2+
import PropTypes from "prop-types";
3+
4+
const Users = ( {users} ) => {
5+
return <div>
6+
{
7+
'Users of type ' + users.type + ' are ' + users.count
8+
}
9+
</div>
10+
};
11+
12+
Users.propTypes = {
13+
user: PropTypes.object
14+
};
15+
16+
export default Users;

src/components/permission/permission.css

Whitespace-only changes.

src/reducers/fcm.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import {
2+
} from "../actions/users";
3+
4+
export function users(state = {
5+
count: 0,
6+
type: 'none'
7+
}, action) {
8+
switch (action.type) {
9+
default:
10+
return state;
11+
}
12+
}

0 commit comments

Comments
 (0)