Commit 16306cca by Torkel Ödegaard Committed by GitHub

NewPanelEditor: Fixed color option error (#23127)

parent de314851
import React from 'react'; import React from 'react';
import { FieldConfigEditorProps, ColorFieldConfigSettings } from '@grafana/data'; import { FieldConfigEditorProps, ColorFieldConfigSettings } from '@grafana/data';
import { ColorPicker } from '../ColorPicker/ColorPicker'; /* import { ColorPicker } from '../ColorPicker/ColorPicker'; */
export const ColorValueEditor: React.FC<FieldConfigEditorProps<string, ColorFieldConfigSettings>> = ({ export const ColorValueEditor: React.FC<FieldConfigEditorProps<string, ColorFieldConfigSettings>> = ({
value, value,
onChange, onChange,
item, item,
}) => { }) => {
return <ColorPicker color={value} onChange={onChange} enableNamedColors={!!item.settings.enableNamedColors} />; return <div>todo</div>;
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment