Move types to central location
parent
19946e0dc2
commit
8a63b30cf3
|
@ -5,17 +5,7 @@ import uuid from 'uuid'
|
|||
|
||||
import Authorized, {EDITOR_ROLE} from 'src/auth/Authorized'
|
||||
import TemplateControlDropdown from 'src/dashboards/components/TemplateControlDropdown'
|
||||
|
||||
interface TemplateValue {
|
||||
value: string
|
||||
selected?: boolean
|
||||
}
|
||||
|
||||
interface Template {
|
||||
id: string
|
||||
tempVar: string
|
||||
values: TemplateValue[]
|
||||
}
|
||||
import {Template} from 'src/types/dashboard'
|
||||
|
||||
interface Props {
|
||||
templates: Template[]
|
||||
|
|
|
@ -2,17 +2,7 @@ import React, {SFC} from 'react'
|
|||
|
||||
import Dropdown from 'src/shared/components/Dropdown'
|
||||
import {calculateDropdownWidth} from 'src/dashboards/constants/templateControlBar'
|
||||
|
||||
interface TemplateValue {
|
||||
value: string
|
||||
selected?: boolean
|
||||
}
|
||||
|
||||
interface Template {
|
||||
id: string
|
||||
tempVar: string
|
||||
values: TemplateValue[]
|
||||
}
|
||||
import {Template} from 'src/types/dashboard'
|
||||
|
||||
interface Props {
|
||||
template: Template
|
||||
|
|
|
@ -58,3 +58,14 @@ export interface Cell {
|
|||
links: CellLinks
|
||||
legend: Legend
|
||||
}
|
||||
|
||||
interface TemplateValue {
|
||||
value: string
|
||||
selected?: boolean
|
||||
}
|
||||
|
||||
export interface Template {
|
||||
id: string
|
||||
tempVar: string
|
||||
values: TemplateValue[]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue