mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add WelcomeBanner.width extension API (#3663)
* Allow to add WelcomeBannerRegistration.width and use that to caculate to width of Banner container Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Export at const Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
4 files changed
+61
-17
No files matched your search
@@ -30,6 +30,10 @@ export interface WelcomeBannerRegistration {
|
||||
* The banner component to be shown on the welcome screen.
|
||||
*/
|
||||
Banner?: React.ComponentType
|
||||
/**
|
||||
* The banner width in px.
|
||||
*/
|
||||
width?: number
|
||||
}
|
||||
|
||||
export class WelcomeBannerRegistry extends BaseRegistry<WelcomeBannerRegistration> { }
|
||||
Reference in new issue
Block a user