-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/deseng657: Implemented language selector in engagement creati…
…on wizard (#2560) * feature/deseng657: Added language picker to engagement creation wizard. * feature/deseng657: made language selector code more dynamic and other misc fixes as per Nat's review.
- Loading branch information
1 parent
085451b
commit ce13757
Showing
4 changed files
with
83 additions
and
4 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
8 changes: 8 additions & 0 deletions
8
met-web/src/components/engagement/new/create/languageLoader.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,8 @@ | ||
import { getTenantLanguages } from 'services/languageService'; | ||
import { defer } from 'react-router-dom'; | ||
|
||
export const languageLoader = async () => { | ||
const tenantId = sessionStorage.getItem('tenantId'); | ||
const languages = getTenantLanguages(tenantId ?? '').then((response) => response); | ||
return defer({ languages }); | ||
}; |
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