mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Chore: replace React.FC<Props> with simple function component (#54123)
This commit is contained in:
@@ -9,7 +9,7 @@ interface Props {
|
||||
onChange: (v: string) => void;
|
||||
}
|
||||
|
||||
const IconSelector: React.FC<Props> = ({ value, onChange }) => {
|
||||
const IconSelector = ({ value, onChange }: Props) => {
|
||||
const [icons, setIcons] = useState<SelectableValue[]>(value ? [{ value, label: value }] : []);
|
||||
const [icon, setIcon] = useState<string>();
|
||||
const iconRoot = (window as any).__grafana_public_path__ + 'img/icons/unicons/';
|
||||
|
||||
Reference in New Issue
Block a user