mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Allow numbers in tab name (#2004)
This commit is contained in:
		
							parent
							
								
									6f5c2a8c1e
								
							
						
					
					
						commit
						898fb88d86
					
				@ -4,7 +4,7 @@ import classNames from "classnames";
 | 
			
		||||
import { TabContext } from "utils/contexts/tab";
 | 
			
		||||
 | 
			
		||||
export function slugify(tabName) {
 | 
			
		||||
  return tabName ? encodeURIComponent(tabName.replace(/\s+/g, '-').toLowerCase()) : ''
 | 
			
		||||
  return tabName ? encodeURIComponent(tabName.toString().replace(/\s+/g, '-').toLowerCase()) : ''
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default function Tab({ tab }) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user