File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export interface UserResponse {
15
15
readonly username : string
16
16
readonly email : string
17
17
readonly created_at : string
18
+ readonly status : "active" | "suspended"
18
19
}
19
20
20
21
/**
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const UsersPage: React.FC = () => {
15
15
*/
16
16
useEffect ( ( ) => {
17
17
usersSend ( "GET_USERS" )
18
- } , [ ] )
18
+ } , [ usersSend ] )
19
19
20
20
if ( usersState . matches ( "error" ) ) {
21
21
return < ErrorSummary error = { getUsersError } />
Original file line number Diff line number Diff line change @@ -25,13 +25,15 @@ export const MockUser: UserResponse = {
25
25
username : "TestUser" ,
26
26
email : "test@coder.com" ,
27
27
created_at : "" ,
28
+ status : "active"
28
29
}
29
30
30
31
export const MockUser2 : UserResponse = {
31
32
id : "test-user-2" ,
32
33
username : "TestUser2" ,
33
34
email : "test2@coder.com" ,
34
35
created_at : "" ,
36
+ status : "active"
35
37
}
36
38
37
39
export const MockPager : Pager = {
You can’t perform that action at this time.
0 commit comments