mirror of https://github.com/grafana/grafana
Feature Highlights: add highlight to toolbar button and add upgrade modal (#44645)
* Feature Highlights: add highlight to toolbar button and add upgrade modal * replace hideTitle attribute by making title optional * update modal design * remove unused updatespull/45005/head
parent
05ea825c76
commit
bdac6576e4
@ -0,0 +1,18 @@ |
|||||||
|
import React from 'react'; |
||||||
|
import { Modal } from '@grafana/ui'; |
||||||
|
import { UpgradeBox } from './UpgradeBox'; |
||||||
|
|
||||||
|
export interface Props { |
||||||
|
title: string; |
||||||
|
text: string; |
||||||
|
isOpen?: boolean; |
||||||
|
onDismiss?: () => void; |
||||||
|
} |
||||||
|
|
||||||
|
export const UpgradeModal = ({ title, text, isOpen, onDismiss }: Props) => { |
||||||
|
return ( |
||||||
|
<Modal title={title} isOpen={isOpen} onDismiss={onDismiss}> |
||||||
|
<UpgradeBox text={text} /> |
||||||
|
</Modal> |
||||||
|
); |
||||||
|
}; |
Loading…
Reference in new issue