Skip to content

Commit

Permalink
Issue mozilla#2807: Reorganize subcomponents & tests used only by Exp…
Browse files Browse the repository at this point in the history
…erimentPage
  • Loading branch information
lmorchard committed Sep 28, 2017
1 parent bc723e0 commit 0235395
Show file tree
Hide file tree
Showing 11 changed files with 353 additions and 378 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { Localized } from 'fluent-react/compat';
import React from 'react';

import Copter from './Copter';
import { buildSurveyURL } from '../lib/utils';
import Copter from '../../components/Copter';
import { buildSurveyURL } from '../../lib/utils';

type ExperimentDisableDialogProps = {
experiment: Object,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import classnames from 'classnames';
import { Localized } from 'fluent-react/compat';
import React from 'react';

import { experimentL10nId } from '../lib/utils';
import { experimentL10nId } from '../../lib/utils';

type ExperimentTourDialogProps = {
experiment: Object,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/containers/ExperimentPage/TestpilotPromo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default class TestpilotPromo extends React.Component {
render() {
const { hasAddon, graduated, experiment } = this.props;

const { title } = experiment;
if (hasAddon === null || hasAddon || graduated || experiment.web_url) {
const { title, web_url } = experiment;
if (hasAddon === null || hasAddon || graduated || web_url) {
return null;
}
return (
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/app/containers/ExperimentPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ import { buildSurveyURL, experimentL10nId, formatDate } from '../../lib/utils';
import NotFoundPage from '../NotFoundPage';

import EmailDialog from '../../components/EmailDialog';
import ExperimentDisableDialog from '../../components/ExperimentDisableDialog';
import ExperimentEolDialog from '../../components/ExperimentEolDialog';
import ExperimentTourDialog from '../../components/ExperimentTourDialog';
import LocalizedHtml from '../../components/LocalizedHtml';
import ExperimentCardList from '../../components/ExperimentCardList';
import ExperimentPreFeedbackDialog from '../../components/ExperimentPreFeedbackDialog';
import View from '../../components/View';
import Warning from '../../components/Warning';

import ExperimentPlatforms from '../../components/ExperimentPlatforms';
import Banner from '../../components/Banner';
import LayoutWrapper from '../../components/LayoutWrapper';

import ExperimentPreFeedbackDialog from './ExperimentPreFeedbackDialog';
import ExperimentDisableDialog from './ExperimentDisableDialog';
import ExperimentEolDialog from './ExperimentEolDialog';
import ExperimentTourDialog from './ExperimentTourDialog';
import IncompatibleAddons from './IncompatibleAddons';
import TestpilotPromo from './TestpilotPromo';

Expand Down
Loading

0 comments on commit 0235395

Please sign in to comment.