Skip to content

Commit

Permalink
feat(playground): Rename Explore to Build
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Sep 27, 2019
1 parent da8b7a2 commit ce067a9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/cubejs-playground/src/App.js
Expand Up @@ -78,7 +78,7 @@ class App extends Component {
mode="horizontal"
selectedKeys={[location.pathname]}
>
<Menu.Item key="/explore"><Link to="/explore">Explore</Link></Menu.Item>
<Menu.Item key="/build"><Link to="/build">Build</Link></Menu.Item>
<Menu.Item key="/dashboard"><Link to="/dashboard">Dashboard App</Link></Menu.Item>
<Menu.Item key="/schema"><Link to="/schema">Schema</Link></Menu.Item>
<Menu.Item
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-playground/src/ExplorePage.js
Expand Up @@ -40,7 +40,7 @@ class ExplorePage extends Component {
return this.cubejsApi() && (
<PlaygroundQueryBuilder
query={query}
setQuery={(q) => history.push(`/explore?query=${JSON.stringify((q))}`)}
setQuery={(q) => history.push(`/build?query=${JSON.stringify((q))}`)}
cubejsApi={this.cubejsApi()}
apiUrl={apiUrl}
cubejsToken={cubejsToken}
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-playground/src/IndexPage.js
Expand Up @@ -27,7 +27,7 @@ class IndexPage extends Component {
}
return <Redirect to={
!this.state.files.length || this.state.files.length === 1 && this.state.files[0].fileName === 'Orders.js' ?
'/schema' : '/explore'
'/schema' : '/build'
} />;
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/cubejs-playground/src/SchemaPage.js
Expand Up @@ -112,11 +112,11 @@ class SchemaPage extends Component {
Modal.success({
title: 'Schema files successfully generated!',
content: 'You can start building the charts',
okText: 'Explore',
okText: 'Build',
cancelText: 'Close',
okCancel: true,
onOk() {
history.push('/explore');
history.push('/build');
}
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions packages/cubejs-playground/src/index.js
Expand Up @@ -24,8 +24,8 @@ ReactDOM.render(
component={IndexPage}
/>
<Route
key="explore"
path="/explore"
key="build"
path="/build"
component={ExplorePage}
/>
<Route
Expand Down

0 comments on commit ce067a9

Please sign in to comment.