Skip to content

Commit 8b6eeaa

Browse files
committed
Add how to see solution
1 parent c75cc83 commit 8b6eeaa

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/locales/common/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"researchYes":"I will take part on the research. By selecting this option you will help current and future students.",
7373
"researchNo":"I will not take part on the research.",
7474
"save":"Save",
75-
"fillRequired":"Fill the required fields."
75+
"fillRequired":"Fill the required fields.",
76+
"howSeeSolution":"You can see the solution in the Test My Code -service either in TMCBeans or in TMC website after completing the exercise."
7677

7778
}

src/locales/common/fi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
"researchYes":"Osallistun oppimiseen liittyvään tutkimukseen. Valitsemalla tämän autat sekä nykyisiä että tulevia opiskelijoita.",
7373
"researchNo":"En osallistu oppimiseen liittyvään tutkimukseen.",
7474
"save":"Tallenna",
75-
"fillRequired":"Täytä vaaditut kentät."
76-
75+
"fillRequired":"Täytä vaaditut kentät.",
76+
"howSeeSolution": "Voit katsella mallivastausta Test My Code -palvelusta, joko TMCBeansin kautta tai TMC-sivuilla palautettuasi tehtävän hyväksytysti."
7777

7878

7979
}

src/partials/ProgrammingExercise/ExtraDetails.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,9 @@ const ExtraDetails = ({ exerciseDetails, onUpdate, nocoins, t }) => {
5858
<Typography>{t("solutionHowTo")}</Typography>
5959
</ExpansionPanelSummary>
6060
<ExpansionPanelDetails>
61-
<Coins
62-
exerciseDetails={exerciseDetails}
63-
onUpdate={onUpdate}
64-
nocoins={nocoins}
65-
/>
61+
<StyledTypography>
62+
{t("howSeeSolution")}
63+
</StyledTypography>
6664
</ExpansionPanelDetails>
6765
</ExpansionPanel>
6866
</div>

0 commit comments

Comments
 (0)