Skip to content

Commit

Permalink
moves formatters to toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmullen authored and davelandry committed Jul 2, 2019
1 parent 7ed9a23 commit 9587300
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 1 addition & 5 deletions packages/cms/src/Builder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React, {Component} from "react";
import PropTypes from "prop-types";
import ProfileBuilder from "./profile/ProfileBuilder";
import StoryBuilder from "./story/StoryBuilder";
import FormatterEditor from "./formatter/FormatterEditor";
import {fetchData} from "@datawheel/canon-core";
import {connect} from "react-redux";

Expand Down Expand Up @@ -72,7 +71,7 @@ class Builder extends Component {
render() {
const {currentTab, secondaryLocale, locales, localeDefault} = this.state;
const {isEnabled} = this.props;
const navLinks = ["profiles", "stories", "formatters"];
const navLinks = ["profiles", "stories"];

if (!isEnabled) return null;

Expand Down Expand Up @@ -136,9 +135,6 @@ class Builder extends Component {
locale={secondaryLocale}
/>
}
{currentTab === "formatters" &&
<FormatterEditor />
}
</div>
);
}
Expand Down
4 changes: 3 additions & 1 deletion packages/cms/src/components/toolbox/Toolbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {Checkbox} from "@blueprintjs/core";
import Section from "../Section";
import Loading from "components/Loading";
import GeneratorCard from "../cards/GeneratorCard";
import FormatterEditor from "../../formatter/FormatterEditor";
import Status from "../Status";
import "./toolbox.css";

Expand Down Expand Up @@ -248,7 +249,8 @@ export default class Toolbox extends Component {
/>
</div>}
{ currentView === "formatters" && <div>
formatters
{/* formatters */}
<FormatterEditor />
</div>}

</div>;
Expand Down

0 comments on commit 9587300

Please sign in to comment.