File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Link from 'next/link'
66
77const  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 > 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments