Skip to content

Commit 52b2bef

Browse files
wangshijunsgrove
authored andcommitted
Make 'Explorer' title configurable
1 parent 4174b45 commit 52b2bef

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Explorer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ type MakeDefaultArg = (
6767
type Props = {
6868
query: string,
6969
width?: number,
70+
title?: string,
7071
schema?: ?GraphQLSchema,
7172
onEdit: string => void,
7273
getDefaultFieldNames?: ?(type: GraphQLObjectType) => Array<string>,
@@ -1747,6 +1748,7 @@ class ExplorerWrapper extends React.PureComponent<Props, {}> {
17471748
static defaultValue = defaultValue;
17481749
static defaultProps = {
17491750
width: 380,
1751+
title: 'Explorer',
17501752
};
17511753
render() {
17521754
return (
@@ -1759,7 +1761,7 @@ class ExplorerWrapper extends React.PureComponent<Props, {}> {
17591761
display: this.props.explorerIsOpen ? 'block' : 'none',
17601762
}}>
17611763
<div className="history-title-bar">
1762-
<div className="history-title">Explorer</div>
1764+
<div className="history-title">{this.props.title}</div>
17631765
<div className="doc-explorer-rhs">
17641766
<div
17651767
className="docExplorerHide"

0 commit comments

Comments
 (0)