You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
* Change icon for general/account tab
...and add support for compound design token icons to TabbedView,
changing all the other icons over while we're at it.
* Update snapshots
* Fix responsive mode
* Missed one
* truthy-check the whole block
* Use asset imports
* Update snapshots
Copy file name to clipboardExpand all lines: src/components/structures/TabbedView.tsx
+7-3
Original file line number
Diff line number
Diff line change
@@ -34,14 +34,14 @@ export class Tab<T extends string> {
34
34
* Creates a new tab.
35
35
* @param {string} id The tab's ID.
36
36
* @param {string} label The untranslated tab label.
37
-
* @param {string} icon The class for the tab icon. This should be a simple mask.
37
+
* @param {string|JSX.Element} icon An SVG element to use for the tab icon. Can also be a string for legacy icons, in which case it is the class for the tab icon. This should be a simple mask.
38
38
* @param {React.ReactNode} body The JSX for the tab container.
39
39
* @param {string} screenName The screen name to report to Posthog.
0 commit comments