Skip to content

Commit

Permalink
Merge branch 'homepage-updates' into ramadan-release
Browse files Browse the repository at this point in the history
  • Loading branch information
osamasayed committed Mar 1, 2024
2 parents d9d65c3 + 085b52b commit faa66cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ const LearningPlansButtons = () => {
};

const viewPlansButton = (
<Button
onClick={onViewPlansButtonClicked}
href={getCoursesNavigationUrl()}
className={styles.viewPlansBtn}
size={ButtonSize.Small}
>
{t('qgj.learning-plans.cta.all-plans')}
</Button>
<div className={styles.buttonsContainer}>
<Button
onClick={onViewPlansButtonClicked}
href={getCoursesNavigationUrl()}
className={styles.viewPlansBtn}
size={ButtonSize.Small}
>
{t('qgj.learning-plans.cta.all-plans')}
</Button>
</div>
);

if (!isLoggedIn()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ const LearningPlans = () => {
* If we are loading, or if we have an error, or if we have no data, we show the message
*/
if ((isValidating && !data) || error || (data?.count ?? 0) === 0) {
return (
<div>
<p className={styles.desc}>{t('qgj.learning-plans.desc.logged-in-no-plans')}</p>
</div>
);
return <p className={styles.desc}>{t('qgj.learning-plans.desc.logged-in-no-plans')}</p>;
}
// user has at least 1 plan
return <p className={styles.desc}>{t('qgj.learning-plans.desc.logged-in')}</p>;
Expand Down

0 comments on commit faa66cb

Please sign in to comment.