Skip to content

Commit

Permalink
fix ddlang
Browse files Browse the repository at this point in the history
  • Loading branch information
advu committed Oct 16, 2024
1 parent 0440b6a commit 76698d0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
18 changes: 10 additions & 8 deletions client/components/HomeView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ const HomeView = () => {
return (
<div className="cont-tall cont flex-col auto gap-row-sm pt-lg blue-bg">
{showDDLangIntroductory && <DDLangIntroductory setShowDDLangIntroductory={setShowDDLangIntroductory}/>}
{showDDLangBackGroundQuestions && <DDLangTermsAndConditions openModal={showDDLangBackGroundQuestions} setOpenModal={setShowDDLangBackGroundQuestions}/>}
{/* {showDDLangBackGroundQuestions && <DDLangTermsAndConditions openModal={showDDLangBackGroundQuestions} setOpenModal={setShowDDLangBackGroundQuestions}/>} */}
<AddStoryModal open={addStoryModalOpen} setOpen={setAddStoryModalOpen} />
<PracticeModal open={practiceModalOpen} setOpen={setPracticeModalOpen} />
<BetaLanguageModal
Expand All @@ -380,13 +380,15 @@ const HomeView = () => {
{(!user?.user.is_teacher || (user?.user.is_teacher && !user?.teacherView)) && (
<Recommender />
)}

{!userData.is_teacher && !userData.grade && !userIsAnonymous && userData.is_new_user && (
<SetCEFRReminder
open={openReminder}
setOpen={setOpenReminder}
newUser={userData.is_new_user}
/>
{(!userData.is_teacher || !userData.is_teacher[learningLanguage]) &&
!userData.grade &&
!userIsAnonymous &&
userData.is_new_user && (
<SetCEFRReminder
open={openReminder}
setOpen={setOpenReminder}
newUser={userData.is_new_user}
/>
)}
<div className="grow flex-col">
{bigScreen ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const ReadingTestElicationDialog = ({ question, showElication, submitElication }
values={{
b: (chunks) => <b>{chunks}</b>,
i: (chunks) => <i>{chunks}</i>,
br: () => <br />,
}}
/>
</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const ReadingTestFeedbacks = ({ showFeedbacks, closeFeedbacks }) => {
values={{
b: (chunks) => <b>{chunks}</b>,
i: (chunks) => <i>{chunks}</i>,
br: () => <br />,
}}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const ReadingTestNextSetDialog = ({ showNextSetDialog, confirmNextSet }) => {
values={{
b: (chunks) => <b>{chunks}</b>,
i: (chunks) => <i>{chunks}</i>,
br: () => <br />,
}} />
</h4>
<button
Expand Down

0 comments on commit 76698d0

Please sign in to comment.