Skip to content

Commit

Permalink
plugin: Migrate from grafana-info-box to Alert (@grafana/ui)
Browse files Browse the repository at this point in the history
The legacy CSS class grafana-info-box will be removed in Grafana 12.
  • Loading branch information
fetzerch committed Jul 9, 2024
1 parent 943306f commit 3bc22ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ConfigEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ChangeEvent, PureComponent } from 'react';
import { InlineField, Input } from '@grafana/ui';
import { Alert, InlineField, Input } from '@grafana/ui';
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
import { SunAndMoonDataSourceOptions } from './types';

Expand Down Expand Up @@ -57,11 +57,11 @@ export class ConfigEditor extends PureComponent<Props> {
return (
<div className="gf-form-group">
<h3 className="page-heading">Sun and Moon reference location</h3>
<div className="grafana-info-box">
<Alert severity="info" title="">
This datasource calculates sun and moon metrics that are relative to a location on earth.
<br />
The geographic position is expressed as latitude and longitude in decimal degrees.
</div>
</Alert>
<div className="gf-form">
<InlineField label="Latitude" labelWidth={14}>
<Input
Expand Down

0 comments on commit 3bc22ac

Please sign in to comment.