Skip to content

Commit

Permalink
feat: update ‘developer management’ on admin portal
Browse files Browse the repository at this point in the history
  • Loading branch information
Truong An committed Jul 14, 2020
1 parent 425e1b2 commit 06f5269
Show file tree
Hide file tree
Showing 66 changed files with 2,480 additions and 293 deletions.
2 changes: 1 addition & 1 deletion packages/admin-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"snyk": "^1.341.1"
},
"devDependencies": {
"@reapit/foundations-ts-definitions": "0.0.85",
"@reapit/foundations-ts-definitions": "0.0.86",
"@types/nanoid": "^2.1.0",
"redux-mock-store": "^1.5.4"
},
Expand Down
10 changes: 8 additions & 2 deletions packages/admin-portal/src/actions/developer-set-status.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { actionCreator } from '../utils/actions'
import ActionTypes from '../constants/action-types'
import { DeveloperModel } from '@reapit/foundations-ts-definitions'
import { UpdateDeveloperModel } from '@reapit/foundations-ts-definitions'

export const developerSetStatusRequest = actionCreator<DeveloperModel>(ActionTypes.DEVELOPER_SET_STATUS_REQUEST)
export type UpdateDeveloperModelRequest = {
callback?: (success: boolean) => void
} & UpdateDeveloperModel

export const developerSetStatusRequest = actionCreator<UpdateDeveloperModelRequest>(
ActionTypes.DEVELOPER_SET_STATUS_REQUEST,
)
export const developerSetStatusRequestLoading = actionCreator<void>(ActionTypes.DEVELOPER_SET_STATUS_REQUEST_LOADING)
export const developerSetStatusRequestFailure = actionCreator<void>(ActionTypes.DEVELOPER_SET_STATUS_REQUEST_FAILURE)
export const developerSetStatusRequestSuccess = actionCreator<void>(ActionTypes.DEVELOPER_SET_STATUS_REQUEST_SUCCESS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ exports[`admin-apps AdminApprovals should match a snapshot 1`] = `
validate={null}
>
<div
className="field"
className="field "
>
<div
className="control "
Expand Down Expand Up @@ -273,7 +273,7 @@ exports[`admin-apps AdminApprovals should match a snapshot 1`] = `
validate={null}
>
<div
className="field"
className="field "
>
<div
className="control "
Expand Down Expand Up @@ -320,7 +320,7 @@ exports[`admin-apps AdminApprovals should match a snapshot 1`] = `
validate={null}
>
<div
className="field"
className="field "
>
<div
className="control "
Expand Down
Loading

0 comments on commit 06f5269

Please sign in to comment.