@@ -14,6 +14,7 @@ import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails'
14
14
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'
15
15
import { prism } from 'react-syntax-highlighter/dist/esm/styles/prism'
16
16
import ExpandMoreIcon from '@material-ui/icons/ExpandMore'
17
+ import Typography from '@material-ui/core/Typography'
17
18
18
19
export const CONFIG_V2_QUERY = gql `
19
20
query FetchConfigV2 {
@@ -38,7 +39,7 @@ export const ConfigurationV2Card = () => {
38
39
< Card >
39
40
< CardHeader title = "TOML Configuration" />
40
41
< TOMLPanel
41
- title = "v2 config dump"
42
+ title = "V2 config dump: "
42
43
error = { error ?. message }
43
44
loading = { loading }
44
45
toml = { data ?. configv2 . user }
@@ -113,15 +114,17 @@ const TOMLPanel = ({ loading, toml, error = '', title, expanded }: Props) => {
113
114
const styles = { display : 'block' }
114
115
115
116
return (
116
- < ExpansionPanel defaultExpanded = { expanded } >
117
- < ExpansionPanelSummary expandIcon = { < ExpandMoreIcon /> } >
118
- { title }
119
- </ ExpansionPanelSummary >
120
- < ExpansionPanelDetails style = { styles } >
121
- < SyntaxHighlighter language = "toml" style = { prism } >
122
- { toml }
123
- </ SyntaxHighlighter >
124
- </ ExpansionPanelDetails >
125
- </ ExpansionPanel >
117
+ < Typography >
118
+ < ExpansionPanel defaultExpanded = { expanded } >
119
+ < ExpansionPanelSummary expandIcon = { < ExpandMoreIcon /> } >
120
+ { title }
121
+ </ ExpansionPanelSummary >
122
+ < ExpansionPanelDetails style = { styles } >
123
+ < SyntaxHighlighter language = "toml" style = { prism } >
124
+ { toml }
125
+ </ SyntaxHighlighter >
126
+ </ ExpansionPanelDetails >
127
+ </ ExpansionPanel >
128
+ </ Typography >
126
129
)
127
130
}
0 commit comments