Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [ASL-4566] PIL-E MVP iteration 1 - course purpose HE or Training #350

Merged
merged 6 commits into from
Nov 7, 2024

Conversation

kiran-varma-home-office
Copy link
Contributor

No description provided.

Copy link

@mohomeoffice mohomeoffice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks okay to me

@kiran-varma-home-office kiran-varma-home-office marked this pull request as ready for review November 7, 2024 13:09
Comment on lines 26 to 29
{property === APPLICANT_TRAINING_USE_AT_WORK || property === APPLICANT_LEARNING_USE ?
<dt><Snippet {...snippetProps}>{`fields.${property}.checkAnswerLabel`}</Snippet></dt> :
<dt><Snippet {...snippetProps}>{`fields.${property}.label`}</Snippet></dt>}
<dd>
Copy link
Contributor

@jeff-horton-ho-sas jeff-horton-ho-sas Nov 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not have overrides for specific fields as that is hard to follow. Instead checkAnswerLabel should be a generic property. The Snippet component has a fallback for this use case (snippet/index.jsx)

Suggested change
{property === APPLICANT_TRAINING_USE_AT_WORK || property === APPLICANT_LEARNING_USE ?
<dt><Snippet {...snippetProps}>{`fields.${property}.checkAnswerLabel`}</Snippet></dt> :
<dt><Snippet {...snippetProps}>{`fields.${property}.label`}</Snippet></dt>}
<dd>
<dt>
<Snippet {...snippetProps} fallback={`fields.${property}.label`}>
{`fields.${property}.checkAnswerLabel`}
</Snippet>
</dt> :
<dd>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that doesn't work. I only want different label in 2 places and in every other place I want other label. I will call you to discuss!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for your help @jeff-horton-ho-sas .

@kiran-varma-home-office kiran-varma-home-office merged commit c7a3c00 into main Nov 7, 2024
3 checks passed
@jeff-horton-ho-sas jeff-horton-ho-sas deleted the feat/ASL-4566-PIL-E-course-purpose branch November 7, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants