mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 14:18:47 +00:00
replace spaces in tab slugify
This commit is contained in:
parent
6dc3be6029
commit
42b69e44a2
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import classNames from "classnames";
|
||||||
import { TabContext } from "utils/contexts/tab";
|
import { TabContext } from "utils/contexts/tab";
|
||||||
|
|
||||||
export function slugify(tabName) {
|
export function slugify(tabName) {
|
||||||
return tabName ? encodeURIComponent(tabName.toLowerCase()) : ''
|
return tabName ? encodeURIComponent(tabName.replace(/\s+/g, '-').toLowerCase()) : ''
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Tab({ tab }) {
|
export default function Tab({ tab }) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue