Skip to content

Commit

Permalink
Update ArticleContent to ArticleView component
Browse files Browse the repository at this point in the history
  • Loading branch information
podlomar committed Mar 17, 2024
1 parent 6ccd57f commit 0be68a2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { MenuItem } from 'app/components/Menu';
import Breadcrumbs from 'app/components/Breadcrumbs';
import LessonBanner from 'app/components/LessonBanner';
import ReactHast from 'app/components/ReactHast';
import ArticleContent from 'app/components/ArticleContent/intex';
import ExerciseHead from 'app/components/ExerciseHead';
import Solution from 'app/components/Solution';
import { CmsAgent } from 'kodim-cms/esm/access-control/claim-agent';
import { session } from 'app/session';
import ArticleView from 'app/components/ArticleView/intex';

export const dynamic = 'force-dynamic';

Expand Down Expand Up @@ -90,7 +90,7 @@ const ExercisePage = async ({ params }: Props): Promise<JSX.Element> => {
<div className="container">
<Breadcrumbs crumbs={exercise.crumbs} />
<LessonBanner lesson={lesson} />
<ArticleContent
<ArticleView
navItems={navItems}
activeNavKey={sectionId}
head={<ExerciseHead exercise={exercise} link={false} />}
Expand All @@ -99,7 +99,7 @@ const ExercisePage = async ({ params }: Props): Promise<JSX.Element> => {
>
<ReactHast root={exercise.assign} />
{exercise.solution !== 'none' && <Solution root={exercise.solution} />}
</ArticleContent>
</ArticleView>
</div>
);
};
Expand Down

0 comments on commit 0be68a2

Please sign in to comment.