Skip to content

Commit

Permalink
Merge pull request #74 from reapit/feature/cld-312-desktop-url
Browse files Browse the repository at this point in the history
[CLD-312] Fixes url to ltl
  • Loading branch information
willmcvay authored Oct 24, 2019
2 parents c230066 + 5bc4374 commit 494d6bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 37 deletions.
25 changes: 5 additions & 20 deletions src/components/ui/__tests__/__snapshots__/aml-progressbar.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -74,28 +74,13 @@ exports[`AMLProgressBar AMLProgressBar should match snapshot 1`] = `
>
ID Check Successful
</AcButton>
<AcButton
buttonProps={
Object {
"type": "button",
"variant": "primary",
}
}
dynamicLinkParams={
Object {
"appMode": "WEB",
"entityType": "apps",
"queryParams": Object {
"appPram": "cntCode",
"closeApp": true,
"id": "3ec48bb7-f152-4d0d-8b6a-b5d0c8fff010",
},
"webRoute": "https://dev.lifetime-legal-app.reapit.com?cntCode=MKC16000098",
}
}
<Button
onClick={[Function]}
type="button"
variant="primary"
>
Refer to Lifetime Legal
</AcButton>
</Button>
</React.Fragment>
}
title="Update Status"
Expand Down
23 changes: 6 additions & 17 deletions src/components/ui/aml-progressbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,26 +111,15 @@ export const AMLProgressBar: React.FC<AMLProgressBarProps> = ({
>
ID Check Successful
</AcButton>
<AcButton
dynamicLinkParams={{
entityType: EntityType.APPS,
appMode: loginMode,
queryParams: {
// TODO - this is the LTL dev app id - should be dynamic
id: '3ec48bb7-f152-4d0d-8b6a-b5d0c8fff010',
appPram: 'cntCode' as AppParams,
closeApp: true
},
// TODO - as above, needs to not be hardcoded
webRoute: `https://dev.lifetime-legal-app.reapit.com?cntCode=${contact.id}`
}}
buttonProps={{
type: 'button',
variant: 'primary'
<Button
type="button"
variant="primary"
onClick={() => {
window.location.href = `https://dev.lifetime-legal-app.reapit.com/profile/${contact.id}`
}}
>
Refer to Lifetime Legal
</AcButton>
</Button>
</>
}
>
Expand Down

0 comments on commit 494d6bb

Please sign in to comment.