replace spaces in tab slugify
This commit is contained in:
1 parent
6dc3be6029
commit
42b69e44a2
1 file changed
+1
-1
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
||||
import { TabContext } from "utils/contexts/tab";
|
||||
|
||||
export function slugify(tabName) {
|
||||
return tabName ? encodeURIComponent(tabName.toLowerCase()) : ''
|
||||
return tabName ? encodeURIComponent(tabName.replace(/\s+/g, '-').toLowerCase()) : ''
|
||||
}
|
||||
|
||||
export default function Tab({ tab }) {
|
||||
|
||||
Reference in new issue
Block a user