File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ const sidebarHeaderTextStyles = css({
2222 fontWeight : 600 ,
2323} ) ;
2424
25+ const badgeStyles = css ( {
26+ verticalAlign : 'middle' ,
27+ marginLeft : spacing [ 100 ] ,
28+ } ) ;
29+
2530type Action = 'open-compass-settings' ;
2631
2732const actions : ItemAction < Action > [ ] = [
@@ -43,12 +48,16 @@ export function SidebarHeader({
4348 < div className = { sidebarHeaderStyles } data-testid = "sidebar-header" >
4449 < Subtitle className = { sidebarHeaderTextStyles } >
4550 { isCompassWeb ? 'Data Explorer' : 'Compass' }
51+ { isCompassWeb && (
52+ < Badge
53+ variant = { BadgeVariant . Blue }
54+ className = { badgeStyles }
55+ data-testid = "sidebar-header-badge"
56+ >
57+ Preview
58+ </ Badge >
59+ ) }
4660 </ Subtitle >
47- { isCompassWeb && (
48- < Badge variant = { BadgeVariant . Blue } data-testid = "sidebar-header-badge" >
49- Preview
50- </ Badge >
51- ) }
5261 { ! isCompassWeb && (
5362 < ItemActionControls < Action >
5463 onAction = { onAction }
You can’t perform that action at this time.
0 commit comments