Skip to content

Commit

Permalink
fix(my-pages): Remove health doc button (#17261)
Browse files Browse the repository at this point in the history
* remove button

* Remove unused import

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
thordurhhh and kodiakhq[bot] authored Dec 17, 2024
1 parent 59f9dd0 commit c3e8a9e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 99 deletions.
2 changes: 0 additions & 2 deletions apps/download-service/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import {
WorkMachinesClientConfig,
WorkMachinesClientModule,
} from '@island.is/clients/work-machines'
import { HealthPaymentsOverviewController } from './modules/health/payment-overview-documents.controller'
import {
RightsPortalClientConfig,
RightsPortalClientModule,
Expand All @@ -70,7 +69,6 @@ import {
RegulationDocumentsController,
WorkMachinesController,
OccupationalLicensesController,
HealthPaymentsOverviewController,
],
imports: [
AuditModule.forRoot(environment.audit),
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
AlertMessage,
Box,
DatePicker,
SkeletonLoader,
Expand All @@ -16,7 +15,6 @@ import {
DownloadFileButtons,
UserInfoLine,
amountFormat,
formSubmit,
m,
} from '@island.is/portals/my-pages/core'
import { messages } from '../../lib/messages'
Expand Down Expand Up @@ -88,10 +86,6 @@ export const PaymentOverview = () => {
})
}

const onFetchDocument = (url: string) => {
formSubmit(url)
}

useEffect(() => {
onFetchBills()
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down Expand Up @@ -209,9 +203,6 @@ export const PaymentOverview = () => {
<T.HeadData>
{formatMessage(messages.insuranceShare)}
</T.HeadData>
<T.HeadData>
{formatMessage(messages.paymentDocument)}
</T.HeadData>
</tr>
</T.Head>
<T.Body>
Expand All @@ -229,21 +220,6 @@ export const PaymentOverview = () => {
<T.Data>
{amountFormat(item.insuranceAmount ?? 0)}
</T.Data>
<T.Data>
<Button
iconType="outline"
onClick={() =>
item.downloadUrl
? onFetchDocument(item?.downloadUrl)
: undefined
}
variant="text"
icon="open"
size="small"
>
{formatMessage(messages.fetchDocument)}
</Button>
</T.Data>
</tr>
)
})}
Expand Down

0 comments on commit c3e8a9e

Please sign in to comment.