-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added mock for updating documentation and audience description
- Loading branch information
1 parent
057f114
commit fa77877
Showing
3 changed files
with
222 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { useTranslation } from 'react-i18next' | ||
import { TemplateServices } from './template.services' | ||
import { useDownloadFile } from '../hooks' | ||
|
||
function useDownloadVersionDocument() { | ||
const { t } = useTranslation('mutations-feedback', { | ||
keyPrefix: 'eservice.downloadVersionDraftDocument', | ||
}) | ||
return useDownloadFile(TemplateServices.downloadVersionDraftDocument, { | ||
Check failure on line 9 in src/api/template/template.downloads.ts GitHub Actions / Build and Test (ubuntu-latest, 18.15.0)
|
||
errorToastLabel: t('outcome.error'), | ||
loadingLabel: t('loading'), | ||
}) | ||
} | ||
|
||
export const TemplateDownloads = { | ||
useDownloadVersionDocument, | ||
} |
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