Skip to content

Commit

Permalink
Feature/deseng657 (#2561)
Browse files Browse the repository at this point in the history
* 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.

* feature/deseng657: Small change to wizard language selector in case right_to_left property is missing..

* feature/deseng657: Removed right-to-left code.
  • Loading branch information
jareth-whitney authored Jul 22, 2024
1 parent ce13757 commit e5155b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions met-web/src/components/engagement/new/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ const EngagementCreationWizard = () => {

const handleLanguageEntries = (languages: Language[]) => {
return languages.map((language) => {
const languageWithDirection =
true === language.right_to_left ? language.name.split('').reverse().join('') : language.name;
return (
<>
<span>
Expand All @@ -134,7 +132,7 @@ const EngagementCreationWizard = () => {
value={language.code}
sx={{ pl: 0 }}
/>
{'English' === language.name ? language.name + ' (Required)' : languageWithDirection}
{'English' === language.name ? language.name + ' (Required)' : language.name}
</span>
<br />
</>
Expand Down

0 comments on commit e5155b2

Please sign in to comment.