MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / decodeLabel

Function decodeLabel

src/utils/utils.js:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36};
37
38export const decodeLabel = label =>
39 label
40 .split('-')
41 .map(word => word.charAt(0).toUpperCase() + word.slice(1))
42 .join(' ');
43
44export const forceChakraDarkTheme = () => {
45 localStorage.setItem('chakra-ui-color-mode', 'dark');

Callers 1

CategoryPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected