mirror of
https://github.com/home-assistant/frontend.git
synced 2025-10-04 01:09:38 +00:00

* Add navigation picker for dashboards * Rename to navigation * Fix empty title and path * Use hass panels instead of fetching dashboards * Apply suggestions
5 lines
128 B
TypeScript
5 lines
128 B
TypeScript
export const titleCase = (s) =>
|
|
s.replace(/^_*(.)|_+(.)/g, (_s, c, d) =>
|
|
c ? c.toUpperCase() : " " + d.toUpperCase()
|
|
);
|