const React = window.React;
import RangeInputFixtures from './range-inputs';
import TextInputFixtures from './text-inputs';
import SelectFixtures from './selects';
import TextAreaFixtures from './textareas/';

/**
 * A simple routing component that renders the appropriate
 * fixture based on the location pathname.
 */
const FixturesPage = React.createClass({
  render() {
    switch (window.location.pathname) {
      case '/text-inputs':
        return <TextInputFixtures />;
      case '/range-inputs':
        return <RangeInputFixtures />;
      case '/selects':
        return <SelectFixtures />;
      case '/textareas':
        return <TextAreaFixtures />;
      default:
        return <span />;
    }
  },
});

module.exports = FixturesPage;

const React = window.React;
import RangeInputFixtures from './range-inputs';
import TextInputFixtures from './text-inputs';
import SelectFixtures from './selects';
import TextAreaFixtures from './textareas/';

/**
 * A simple routing component that renders the appropriate
 * fixture based on the location pathname.
 */
const FixturesPage = React.createClass({
  render() {
    switch (window.location.pathname) {
      case '/text-inputs':
        return <TextInputFixtures />;
      case '/range-inputs':
        return <RangeInputFixtures />;
      case '/selects':
        return <SelectFixtures />;
      case '/textareas':
        return <TextAreaFixtures />;
      default:
        return <p>Please select a text fixture.</p>
    }
  },
});

module.exports = FixturesPage;

Add test prompt message when no fixture is selected
Add test prompt message when no fixture is selected
