Chore: Remove Dashboard IconName type assertions (#54573)

* Chore: Remove Dashboard IconName type assertions

* fix lint
This commit is contained in:
Josh Hunt
2022-09-01 13:26:28 +01:00
committed by GitHub
parent caa0c91b1c
commit c3633feea8
5 changed files with 17 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import { SelectableValue } from '@grafana/data';
import { CollapsableSection, TagsInput, Select, Field, Input, Checkbox, Button } from '@grafana/ui';
import { CollapsableSection, TagsInput, Select, Field, Input, Checkbox, Button, IconName } from '@grafana/ui';
import { DashboardLink, DashboardModel } from '../../state/DashboardModel';
@@ -23,7 +23,7 @@ const linkTypeOptions = [
{ value: 'link', label: 'Link' },
];
export const linkIconMap: { [key: string]: string } = {
export const linkIconMap: Record<string, IconName | undefined> = {
'external link': 'external-link-alt',
dashboard: 'apps',
question: 'question-circle',