Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ toSlug
Function
toSlug
packages/shared/src/components/shell/useQueryTab.ts:8–8 ·
view source on GitHub ↗
(tab: string)
Source
from the content-addressed store, hash-verified
6
const
tabParam =
'tab'
;
7
8
const
toSlug = (tab: string): string => tab.toLowerCase().replace(/\s+/g,
'-'
);
9
10
interface
QueryTab<T extends string> {
11
activeTab: T;
Callers
1
useQueryTab
Function · 0.85
Calls
1
replace
Method · 0.80
Tested by
no test coverage detected