File tree Expand file tree Collapse file tree 9 files changed +24
-23
lines changed
packages/graphql-playground/src/components Expand file tree Collapse file tree 9 files changed +24
-23
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import CodeGenerationPopupClientChooser from './CodeGenerationPopupClientChooser
66import { modalStyle } from '../../constants'
77import * as Modal from 'react-modal'
88import { Environment , GraphQLClient } from '../../types'
9- import { withTheme , ThemeInterface } from '../Theme'
9+ import { withTheme , LocalThemeInterface } from '../Theme'
1010
1111export interface Props {
1212 query : string
@@ -21,7 +21,7 @@ export interface State {
2121}
2222
2323class CodeGenerationPopup extends React . Component <
24- Props & ThemeInterface ,
24+ Props & LocalThemeInterface ,
2525 State
2626> {
2727 constructor ( props ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as cx from 'classnames'
33import { $p } from 'graphcool-styles'
44import { CodeGenerator } from './codeGeneration'
55import { GraphQLClient , Environment } from '../../types'
6- import { withTheme , ThemeInterface } from '../Theme'
6+ import { withTheme , LocalThemeInterface } from '../Theme'
77// tslint:disable-next-line
88const Codemirror : any = require ( 'react-codemirror' )
99
@@ -15,7 +15,7 @@ export interface Props {
1515}
1616
1717class CodeGenerationPopupCode extends React . Component <
18- Props & ThemeInterface ,
18+ Props & LocalThemeInterface ,
1919 { }
2020> {
2121 componentWillMount ( ) {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import HistoryItems from './HistoryPopup/HistoryItems'
66import { GraphQLEditor } from './Playground/GraphQLEditor'
77import { $v , Icon } from 'graphcool-styles'
88import { modalStyle } from '../constants'
9- import { withTheme , ThemeInterface } from './Theme'
9+ import { withTheme , LocalThemeInterface } from './Theme'
1010import * as cn from 'classnames'
1111
1212export interface Props {
@@ -26,7 +26,7 @@ export interface State {
2626 searchTerm : string
2727}
2828
29- class HistoryPopup extends React . Component < Props & ThemeInterface , State > {
29+ class HistoryPopup extends React . Component < Props & LocalThemeInterface , State > {
3030 constructor ( props ) {
3131 super ( props )
3232 this . state = {
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import * as cn from 'classnames'
66import { PermissionSession , ServiceInformation } from '../../types'
77import TypeChooser from './TypeChooser'
88import { Button } from '../Button'
9- import { ThemeInterface } from '../Theme'
9+ import { LocalThemeInterface } from '../Theme'
1010
11- export interface Props extends ThemeInterface {
11+ export interface Props extends LocalThemeInterface {
1212 serviceInformation : ServiceInformation
1313 onNewPermissionTab : ( permissionTab : PermissionSession ) => void
1414}
Original file line number Diff line number Diff line change 88
99import * as React from 'react'
1010import * as cx from 'classnames'
11- import { withTheme , ThemeInterface } from '../Theme'
11+ import { withTheme , LocalThemeInterface } from '../Theme'
1212import * as cn from 'classnames'
1313import ExecuteButtonOperation from './ExecuteButtonOperation'
1414
@@ -32,7 +32,10 @@ let firstTime = true
3232 * What a nice round shiny button. Shows a drop-down when there are multiple
3333 * queries to run.
3434 */
35- class ExecuteButton extends React . Component < Props & ThemeInterface , State > {
35+ class ExecuteButton extends React . Component <
36+ Props & LocalThemeInterface ,
37+ State
38+ > {
3639 constructor ( props ) {
3740 super ( props )
3841
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import * as React from 'react'
22import * as cx from 'classnames'
33import { Session } from '../../types'
44import { Icon } from 'graphcool-styles'
5- import { withTheme , OptionalThemeInterface } from '../Theme'
5+ import { withTheme , OptionalLocalThemeInterface } from '../Theme'
66import Tab from './Tab'
77
8- export interface Props extends OptionalThemeInterface {
8+ export interface Props extends OptionalLocalThemeInterface {
99 sessions : Session [ ]
1010 selectedSessionIndex : number
1111 onNewSession : any
@@ -21,9 +21,7 @@ export interface Props extends OptionalThemeInterface {
2121const white20 = '#4a555f'
2222const darkBlue20 = '#c2c8cb'
2323
24- export const TabBar = withTheme <
25- Props
26- > (
24+ export const TabBar = withTheme < Props > (
2725 ( {
2826 sessions,
2927 selectedSessionIndex,
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import * as React from 'react'
22import Icon from 'graphcool-styles/dist/components/Icon/Icon'
33import ToggleButton from './ToggleButton'
44import Tooltip from './Tooltip'
5- import { ThemeInterface } from './Theme'
5+ import { LocalThemeInterface } from './Theme'
66import styled , { css } from '../styled'
77import * as theme from 'styled-theming'
88
9- export interface Props extends ThemeInterface {
9+ export interface Props extends LocalThemeInterface {
1010 onToggleTheme : ( ) => void
1111 onToggleReload : ( ) => void
1212 useVim : boolean
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import Icon from 'graphcool-styles/dist/components/Icon/Icon'
33import { $v } from 'graphcool-styles'
44import ToggleButton from './ToggleButton'
55import Tooltip from './Tooltip'
6- import { ThemeInterface } from './Theme'
6+ import { LocalThemeInterface } from './Theme'
77import * as cn from 'classnames'
88import { Button } from './Button'
99import Copy from './Copy'
1010import styled , { keyframes } from '../styled'
1111
12- export interface Props extends ThemeInterface {
12+ export interface Props extends LocalThemeInterface {
1313 allTabs : boolean
1414 httpHeaders : boolean
1515 history : boolean
Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ import ThemeProvider from './ThemeProvider'
33
44type ThemeType = 'dark' | 'light'
55
6- interface ThemeInterface {
6+ interface LocalThemeInterface {
77 localTheme : ThemeType
88}
99
10- interface OptionalThemeInterface {
10+ interface OptionalLocalThemeInterface {
1111 localTheme ?: ThemeType
1212}
1313
1414export {
1515 withTheme ,
1616 ThemeProvider ,
1717 ThemeType ,
18- ThemeInterface ,
19- OptionalThemeInterface ,
18+ LocalThemeInterface ,
19+ OptionalLocalThemeInterface ,
2020}
You can’t perform that action at this time.
0 commit comments