diff --git a/public/app/core/components/Label/Label.tsx b/public/app/core/components/Label/Label.tsx index 6d4fd20dbfe..9b8fb6c6e19 100644 --- a/public/app/core/components/Label/Label.tsx +++ b/public/app/core/components/Label/Label.tsx @@ -5,11 +5,12 @@ interface Props { tooltip?: string; for?: string; children: ReactNode; + width?: number; } export const Label: SFC = props => { return ( - + {props.children} {props.tooltip && ( @@ -19,4 +20,3 @@ export const Label: SFC = props => { ); }; - diff --git a/public/app/features/org/OrgPreferences.tsx b/public/app/features/org/OrgPreferences.tsx index ab0e163ca3f..6116584a34b 100644 --- a/public/app/features/org/OrgPreferences.tsx +++ b/public/app/features/org/OrgPreferences.tsx @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react'; import { connect } from 'react-redux'; -import Tooltip from '../../core/components/Tooltip/Tooltip'; +import { Label } from '../../core/components/Label/Label'; import SimplePicker from '../../core/components/Picker/SimplePicker'; import { Dashboard, OrganizationPreferences } from 'app/types'; import { @@ -59,16 +59,12 @@ export class OrgPreferences extends PureComponent { />
- + + dashboard.id === preferences.homeDashboardId)} getOptionValue={i => i.id} diff --git a/public/app/features/org/__snapshots__/OrgPreferences.test.tsx.snap b/public/app/features/org/__snapshots__/OrgPreferences.test.tsx.snap index c1443e4eefd..06bf464a4a0 100644 --- a/public/app/features/org/__snapshots__/OrgPreferences.test.tsx.snap +++ b/public/app/features/org/__snapshots__/OrgPreferences.test.tsx.snap @@ -44,20 +44,12 @@ exports[`Render should render component 1`] = `
- Home Dashboard - - - - +