-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add continue button to company document list (#163)
- Loading branch information
1 parent
1e283b1
commit b4ccaea
Showing
8 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/components/Company/DocumentSigner/DocumentList/Actions.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,19 @@ | ||
import { ActionsLayout, Button } from '@/components/Common' | ||
|
||
import { useTranslation } from 'react-i18next' | ||
import { useDocumentList } from './DocumentList' | ||
|
||
interface ActionsProps { | ||
continueCtaLabel?: string | ||
} | ||
|
||
export function Actions({ continueCtaLabel }: ActionsProps) { | ||
const { t } = useTranslation('Company.DocumentList') | ||
const { handleContinue } = useDocumentList() | ||
|
||
return ( | ||
<ActionsLayout> | ||
<Button onPress={handleContinue}>{continueCtaLabel || t('continueCta')}</Button> | ||
</ActionsLayout> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import { useTranslation } from 'react-i18next' | ||
|
||
export function Head() { | ||
// @ts-expect-error HACK missing translations | ||
const { t } = useTranslation('Company.DocumentSigner') | ||
const { t } = useTranslation('Company.DocumentList') | ||
|
||
return <h2>{t('documentListTitle')}</h2> | ||
} |
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