Chore: replace React.FC<Props> with simple function component (#54123)

This commit is contained in:
Ryan McKinley
2022-08-24 16:54:34 -04:00
committed by GitHub
parent 277ea836b6
commit b483ac322f
53 changed files with 63 additions and 76 deletions
@@ -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/';