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 Authorized, {EDITOR_ROLE} from 'src/auth/Authorized'
|
||||||
import TemplateControlDropdown from 'src/dashboards/components/TemplateControlDropdown'
|
import TemplateControlDropdown from 'src/dashboards/components/TemplateControlDropdown'
|
||||||
|
import {Template} from 'src/types/dashboard'
|
||||||
interface TemplateValue {
|
|
||||||
value: string
|
|
||||||
selected?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Template {
|
|
||||||
id: string
|
|
||||||
tempVar: string
|
|
||||||
values: TemplateValue[]
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
templates: Template[]
|
templates: Template[]
|
||||||
|
|
|
@ -2,17 +2,7 @@ import React, {SFC} from 'react'
|
||||||
|
|
||||||
import Dropdown from 'src/shared/components/Dropdown'
|
import Dropdown from 'src/shared/components/Dropdown'
|
||||||
import {calculateDropdownWidth} from 'src/dashboards/constants/templateControlBar'
|
import {calculateDropdownWidth} from 'src/dashboards/constants/templateControlBar'
|
||||||
|
import {Template} from 'src/types/dashboard'
|
||||||
interface TemplateValue {
|
|
||||||
value: string
|
|
||||||
selected?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Template {
|
|
||||||
id: string
|
|
||||||
tempVar: string
|
|
||||||
values: TemplateValue[]
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
template: Template
|
template: Template
|
||||||
|
|
|
@ -58,3 +58,14 @@ export interface Cell {
|
||||||
links: CellLinks
|
links: CellLinks
|
||||||
legend: Legend
|
legend: Legend
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface TemplateValue {
|
||||||
|
value: string
|
||||||
|
selected?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Template {
|
||||||
|
id: string
|
||||||
|
tempVar: string
|
||||||
|
values: TemplateValue[]
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue