Skip to content

Commit

Permalink
chore: remove hyphens from heading
Browse files Browse the repository at this point in the history
  • Loading branch information
rupali-codes committed Sep 9, 2023
1 parent e99603c commit 625a99a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/[category]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Link from 'next/link'

const CategoryPage = () => {
const router = useRouter()
const { category } = router.query
const { category } = router.query as { category: string}

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

0 comments on commit 625a99a

Please sign in to comment.