Skip to content

Commit f08b122

Browse files
committed
refactor: Use bootstrap class
1 parent 33c29b6 commit f08b122

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

__tests__/pages/curriculum/[lessonSlug]/__snapshots__/[subLessonSlug].test.js.snap

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ exports[`[subLessonSlug] Page should match screenshot 1`] = `
1919
style="padding-left: 0rem;"
2020
>
2121
<a
22-
class="MDX_a"
22+
class="MDX_a text-decoration-none"
2323
href="#heading1"
24-
style="text-decoration: none;"
2524
>
2625
heading1
2726
</a>
@@ -30,9 +29,8 @@ exports[`[subLessonSlug] Page should match screenshot 1`] = `
3029
style="padding-left: 1rem;"
3130
>
3231
<a
33-
class="MDX_a"
32+
class="MDX_a text-decoration-none"
3433
href="#heading2"
35-
style="text-decoration: none;"
3634
>
3735
heading2
3836
</a>
@@ -41,9 +39,8 @@ exports[`[subLessonSlug] Page should match screenshot 1`] = `
4139
style="padding-left: 2rem;"
4240
>
4341
<a
44-
class="MDX_a"
42+
class="MDX_a text-decoration-none"
4543
href="#heading3"
46-
style="text-decoration: none;"
4744
>
4845
heading3
4946
</a>

pages/curriculum/[lessonSlug]/[subLessonSlug].tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,8 @@ const SubLessonPage: React.FC<Props> & WithLayout = ({
5454
style={{ paddingLeft: `${heading.depth - 1}rem` }}
5555
>
5656
<a
57-
style={{
58-
textDecoration: 'none'
59-
}}
6057
href={`#${headingBookmark}`}
61-
className={mdxStyles.MDX_a}
58+
className={`${mdxStyles.MDX_a} text-decoration-none`}
6259
>
6360
{heading.text}
6461
</a>

0 commit comments

Comments
 (0)