-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: [ASL-4566] PIL-E MVP iteration 1 - course purpose HE or Training #350
Conversation
There was a problem hiding this 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
src/model-summary/index.jsx
Outdated
{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> |
There was a problem hiding this comment.
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)
{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> |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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 .
No description provided.