diff --git a/src/components/About.jsx b/src/components/About.jsx deleted file mode 100644 index 8be6d745..00000000 --- a/src/components/About.jsx +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react'; - -class About extends React.Component { - render() { - return ( -
-

About

-

Todos

-
- ); - } -} - -export default About; diff --git a/src/components/App.jsx b/src/components/App.jsx index 4087fe54..b2d2b77b 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -1,6 +1,5 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { Link } from 'react-router'; import { connect } from 'react-redux'; import GrommetApp from 'grommet/components/App'; import Header from 'grommet/components/Header'; @@ -12,8 +11,7 @@ function App(props) { return (
-

Pandora

- About +

Translate your projects

diff --git a/src/containers/ProjectDashboardContainer.jsx b/src/containers/ProjectDashboardContainer.jsx index 59334505..9cf222d2 100644 --- a/src/containers/ProjectDashboardContainer.jsx +++ b/src/containers/ProjectDashboardContainer.jsx @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; +import { Link } from 'react-router'; import LanguageSelector from '../components/LanguageSelector'; import { fetchProject, addLanguage, setLanguage, fetchLanguages } from '../ducks/project'; import { createTranslation } from '../ducks/resource'; @@ -46,7 +47,13 @@ class ProjectDashboardContainer extends Component { .filter(option => (option.value !== project.primary_language)); return (
-

Project Dashboard

+

+ + {project.display_name} + +

{language &&

diff --git a/src/index.jsx b/src/index.jsx index 3a07b2b2..45a2c520 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -5,7 +5,6 @@ import { Provider } from 'react-redux'; import oauth from 'panoptes-client/lib/oauth'; import App from './components/App'; -import About from './components/About'; import config from './constants/config'; import configureStore from './store'; import ProjectContentsContainer from './containers/ProjectContentsContainer'; @@ -33,7 +32,6 @@ oauth.init(config.panoptesAppId) - ), diff --git a/test/components/About.test.jsx b/test/components/About.test.jsx deleted file mode 100644 index dc408836..00000000 --- a/test/components/About.test.jsx +++ /dev/null @@ -1,27 +0,0 @@ -// Passing arrow functions (lambdas) to Mocha is discouraged -// https://mochajs.org/#arrow-functions -// eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-boolean-value': ['error', 'always'] -// global describe, it, beforeEach, before - -import React from 'react'; -import assert from 'assert'; -import { shallow } from 'enzyme'; -import About from '../../src/components/About'; - -describe('About', () => { - - it('should render without crashing', function() { - shallow(); - }); - - it('should have a div as container', function() { - const wrapper = shallow(); - assert.strictEqual(wrapper.type(), 'div'); - }); - - it('should have an h2 tag containing the text "About"', function() { - const wrapper = shallow(); - const title = wrapper.find('h2'); - assert.strictEqual(title.contains(

About

), true); - }); -});