Skip to content

Commit

Permalink
Refactor page.tsx to use Flex component for layout
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelRajodiya committed May 14, 2024
1 parent caf9a6f commit 63bb32e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/[...markdownPath]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,17 @@ export default async function Content({
Back TO OUTLINE
</Button>
</Link>
<div>
<Flex gap={4}>
<span>
Chapter {chapterIndex + 1}: {chapterTitle} (
{((chapterIndex + 1) / totalChapters) * 100}%)
</span>
</div>
<div>

<span>
Step {stepIndex + 1}: {metadata.title} (
{((stepIndex + 1) / totalSteps) * 100} %)
</span>
</div>
</Flex>
<Flex dir="row" height={"100%"} gap={"8px"}>
<ContentViewer>
<Page />
Expand Down

0 comments on commit 63bb32e

Please sign in to comment.