Skip to content

Commit

Permalink
Added useful links in ProviderEServiceTechnicalInfoDrawer
Browse files Browse the repository at this point in the history
  • Loading branch information
alten-dturus committed Oct 23, 2023
1 parent 7dab94e commit 5f0234c
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ import { Drawer } from '@/components/shared/Drawer'
import { Stack } from '@mui/material'
import { InformationContainer } from '@pagopa/interop-fe-commons'
import { useTranslation } from 'react-i18next'
import { IconLink } from '@/components/shared/IconLink'
import {
implementAndManageEServiceGuideLink,
voucherVerificationGuideLink,
} from '@/config/constants'
import { WELL_KNOWN_URLS } from '@/config/env'
import LaunchIcon from '@mui/icons-material/Launch'

type ProviderEServiceTechnicalInfoDrawerProps = {
isOpen: boolean
Expand Down Expand Up @@ -57,6 +64,36 @@ export const ProviderEServiceTechnicalInfoDrawer: React.FC<
content={t(`mode.value.${descriptor.eservice.mode}`)}
direction="column"
/>

<InformationContainer
label={t('usefulLinks.title')}
content={
<Stack alignItems="start" mt={1} spacing={0.5}>
<IconLink
href={implementAndManageEServiceGuideLink}
target="_blank"
startIcon={<LaunchIcon fontSize="small" />}
>
{t('usefulLinks.implementAndManageEService')}
</IconLink>
<IconLink
href={voucherVerificationGuideLink}
target="_blank"
startIcon={<LaunchIcon fontSize="small" />}
>
{t('usefulLinks.verifyVoucher')}
</IconLink>
<IconLink
href={WELL_KNOWN_URLS[0]}
target="_blank"
startIcon={<LaunchIcon fontSize="small" />}
>
{t('usefulLinks.wellKnown')}
</IconLink>
</Stack>
}
direction="column"
/>
</Stack>
</Drawer>
)
Expand Down

0 comments on commit 5f0234c

Please sign in to comment.