-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add navigation and a new page for processed applications
- Loading branch information
1 parent
f1e79d5
commit 128023c
Showing
19 changed files
with
309 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
frontend/benefit/applicant/src/components/mainIngress/decisions/DecisionsMainIngress.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import MainIngress from 'benefit/applicant/components/mainIngress/MainIngress'; | ||
import { useTranslation } from 'benefit/applicant/i18n'; | ||
import * as React from 'react'; | ||
|
||
const DecisionsMainIngress: React.FC = () => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<MainIngress | ||
heading={t('common:mainIngress.decisions.heading')} | ||
description={<>{t('common:mainIngress.decisions.description')}</>} | ||
/> | ||
); | ||
}; | ||
|
||
export default DecisionsMainIngress; |
12 changes: 12 additions & 0 deletions
12
frontend/benefit/applicant/src/components/mainIngress/frontPage/FrontPageMainIngress.sc.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { respondAbove } from 'shared/styles/mediaQueries'; | ||
import styled from 'styled-components'; | ||
|
||
export const $ActionContainer = styled.div` | ||
display: flex; | ||
align-items: center; | ||
flex: 1 0 30%; | ||
box-sizing: border-box; | ||
${respondAbove('sm')` | ||
justify-content: flex-end; | ||
`} | ||
`; |
40 changes: 40 additions & 0 deletions
40
frontend/benefit/applicant/src/components/mainIngress/frontPage/FrontPageMainIngress.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { $ActionContainer } from 'benefit/applicant/components/mainIngress/frontPage/FrontPageMainIngress.sc'; | ||
import { useFrontPageMainIngress } from 'benefit/applicant/components/mainIngress/frontPage/useFrontPageMainIngress'; | ||
import MainIngress from 'benefit/applicant/components/mainIngress/MainIngress'; | ||
import { Button, IconPlus } from 'hds-react'; | ||
import React from 'react'; | ||
|
||
const FrontPageMainIngress: React.FC = () => { | ||
const { t, handleNewApplicationClick } = useFrontPageMainIngress(); | ||
|
||
return ( | ||
<MainIngress | ||
heading={t('common:mainIngress.frontPage.heading')} | ||
description={ | ||
<> | ||
{t('common:mainIngress.frontPage.description1')}{' '} | ||
{/* TODO: uncomment once having link to redirect to more info url | ||
or remove if this won't be used. | ||
handleMoreInfoClick is from useMainIngress */} | ||
{/* <$Link onClick={handleMoreInfoClick}> | ||
{t('common:mainIngress.frontPage.linkText')} | ||
</$Link> */} | ||
{t('common:mainIngress.frontPage.description2')} | ||
</> | ||
} | ||
> | ||
<$ActionContainer> | ||
<Button | ||
data-testid="newApplicationButton" | ||
iconLeft={<IconPlus />} | ||
onClick={handleNewApplicationClick} | ||
theme="coat" | ||
> | ||
{t('common:mainIngress.frontPage.newApplicationBtnText')} | ||
</Button> | ||
</$ActionContainer> | ||
</MainIngress> | ||
); | ||
}; | ||
|
||
export default FrontPageMainIngress; |
Oops, something went wrong.