Skip to content

Commit 3ede641

Browse files
committed
fix: revert change on buttons for bottom navigation
1 parent 2b4b645 commit 3ede641

File tree

4 files changed

+1
-23
lines changed

4 files changed

+1
-23
lines changed

docs/tutorialkit.dev/src/content/docs/reference/configuration.mdx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ The `I18nText` type has the following shape:
4141

4242
```ts
4343
type I18nText = {
44-
/**
45-
* Prefix in the link to navigate to the next lesson on mobile.
46-
*
47-
* @default 'Next: '
48-
*/
49-
nextLessonPrefix?: string,
50-
5144
/**
5245
* Template for formatting a part. Variables: ${index} and ${title}.
5346
*

packages/astro/src/default/components/TutorialContent.astro

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@ const { Markdown, prev, next } = lesson;
1515
<div class="markdown-content text-tk-elements-content-textColor">
1616
<Markdown />
1717
</div>
18-
{
19-
next && (
20-
<a href={next?.href} class="sm:hidden underline mt-8 font-bold block text-tk-elements-navCard-textColor">
21-
{lesson.data.i18n!.nextLessonPrefix} {next.title}
22-
</a>
23-
)
24-
}
25-
<div class="hidden sm:grid grid-cols-[1fr_1fr] gap-4 mt-8">
18+
<div class="grid grid-cols-[1fr_1fr] gap-4 mt-8">
2619
<div class="flex">
2720
{prev && <NavCard lesson={prev} type="prev" />}
2821
</div>

packages/astro/src/default/utils/content.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export async function getTutorial(): Promise<Tutorial> {
4141
tutorialMetaData.template ??= 'default';
4242
tutorialMetaData.i18n = Object.assign(
4343
{
44-
nextLessonPrefix: 'Next: ',
4544
partTemplate: 'Part ${index}: ${title}',
4645
noPreviewNorStepsText: 'No preview to run nor steps to show',
4746
startWebContainerText: 'Start WebContainer',

packages/types/src/schemas/i18n.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import { z } from 'zod';
22

33
export const i18nSchema = z.object({
4-
/**
5-
* Prefix in the link to navigate to the next lesson on mobile.
6-
*
7-
* @default 'Next: '
8-
*/
9-
nextLessonPrefix: z.string().optional(),
10-
114
/**
125
* Template on how to format a part. Variables: ${index} and ${title}.
136
*

0 commit comments

Comments
 (0)