Move types to central location

pull/10616/head
Alex P 2018-04-17 10:25:09 -07:00
parent 19946e0dc2
commit 8a63b30cf3
3 changed files with 13 additions and 22 deletions

View File

@ -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[]

View File

@ -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

View File

@ -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[]
}