Skip to content

Commit

Permalink
fix: #3689 aml status update (#3930)
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcvay authored Apr 12, 2021
1 parent 56e5ee2 commit e655734
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions packages/aml-checklist/src/components/ui/modal/update-status.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { connect } from 'react-redux'
import { Dispatch } from 'redux'
import { DynamicLinkParams, AcButton, EntityType, Formik, Form, RadioSelect } from '@reapit/elements'
import { DynamicLinkParams, AcButton, EntityType, Formik, Form, RadioSelect, ButtonGroup } from '@reapit/elements'
import { ReduxState } from '@/types/core'
import { checkListDetailIdentityCheckUpdateData } from '@/actions/checklist-detail'
import { ContactModel, IdentityCheckModel } from '@reapit/foundations-ts-definitions'
Expand Down Expand Up @@ -71,21 +71,23 @@ export const UpdateStatus: React.FC<UpdateStatusProps> = ({
state={values[initialProps.name]}
{...initialProps}
/>
<AcButton
dynamicLinkParams={{
entityType: EntityType.CONTACT,
entityCode: id,
appMode: loginMode,
}}
buttonProps={{
type: 'submit',
variant: 'primary',
loading: isSubmitting,
disabled: !values.status,
}}
>
ID Check Successful
</AcButton>
<ButtonGroup hasSpacing isCentered>
<AcButton
dynamicLinkParams={{
entityType: EntityType.CONTACT,
entityCode: id,
appMode: loginMode,
}}
buttonProps={{
type: 'submit',
variant: 'primary',
loading: isSubmitting,
disabled: !values.status,
}}
>
Save Status
</AcButton>
</ButtonGroup>
</Form>
)}
</Formik>
Expand Down

0 comments on commit e655734

Please sign in to comment.