File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
app/[locale]/developers/tutorials/_components Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import React, {
8
8
useMemo ,
9
9
useState ,
10
10
} from "react"
11
+ import { ExternalLink } from "lucide-react"
11
12
import { useLocale } from "next-intl"
12
13
13
14
import { ITutorial , Lang } from "@/lib/types"
@@ -267,13 +268,11 @@ const TutorialPage = ({
267
268
href = { tutorial . href ?? undefined }
268
269
>
269
270
< Flex className = "mb-8 flex-col items-start justify-between gap-y-4 md:-mb-4 md:flex-row" >
270
- < Text
271
- className = { cn (
272
- "relative me-0 text-2xl font-semibold text-body after:ml-2 after:inline-block after:italic after:transition-all after:duration-100 after:ease-in-out after:content-['↗'] md:me-24" ,
273
- tutorial . isExternal ? "after:inline-block" : "after:hidden"
274
- ) }
275
- >
271
+ < Text className = "relative me-0 text-2xl font-semibold text-body md:me-24" >
276
272
{ tutorial . title }
273
+ { tutorial . isExternal && (
274
+ < ExternalLink className = "mb-[0.25em] ms-[0.25em] inline-block size-[0.875em]" />
275
+ ) }
277
276
</ Text >
278
277
< Tag variant = "outline" >
279
278
< Translation id = { getSkillTranslationId ( tutorial . skill ! ) } />
You can’t perform that action at this time.
0 commit comments