Skip to content

Commit 625a99a

Browse files
committed
chore: remove hyphens from heading
1 parent e99603c commit 625a99a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pages/[category]/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Link from 'next/link'
66

77
const CategoryPage = () => {
88
const router = useRouter()
9-
const { category } = router.query
9+
const { category } = router.query as { category: string}
1010

1111
const subcategories: SubCategories[] = []
1212
sidebarData.forEach((c) => {
@@ -24,12 +24,12 @@ const CategoryPage = () => {
2424
<div className="m-auto gap-2 flex flex-col items-center justify-center ">
2525
<p className="md:text-4xl text-xl uppercase font-bold text-theme-secondary dark:text-gray-text w-fit mx-auto text-center">
2626
<span className="text-theme-primary">-/</span>
27-
{category}
27+
{category.split('-').join(' ')}
2828
</p>
2929
<p className="text-xl hidden md:block">
3030
Get access to all exclusive{' '}
3131
<span className="capitalize text-theme-primary">
32-
{category}
32+
{category.split('-').join(' ')}
3333
</span>{' '}
3434
resources!
3535
</p>

0 commit comments

Comments
 (0)