Skip to content
Snippets Groups Projects
Commit a771c1a4 authored by Andy Nicholson's avatar Andy Nicholson
Browse files

fix(*): respond to reviews on merge request

parent c5fb49ee
No related branches found
No related tags found
No related merge requests found
import Accordion from '@pubsweet/ui/src/molecules/Accordion'
import React, { useContext, useState } from 'react'
import PropTypes from 'prop-types'
import { useQuery } from '@apollo/client'
import ReactRouterPropTypes from 'react-router-prop-types'
import { JournalContext } from '../../xpub-journal/src'
import queries from './queries'
import { Container, Placeholder, VisualAbstract } from './style'
......@@ -144,7 +144,7 @@ const Frontpage = ({ history, ...props }) => {
}
Frontpage.propTypes = {
history: PropTypes.oneOfType([PropTypes.object]).isRequired,
history: ReactRouterPropTypes.history.isRequired,
}
export default Frontpage
......@@ -104,6 +104,7 @@ const Login = ({ logo = null, ...props }) => {
}
const journalName = config.journal.metadata.name
return redirectLink ? (
<Redirect to={redirectLink} />
) : (
......
......@@ -24,6 +24,7 @@
"server:test": "node node_modules/pubsweet-server/src/start",
"start:server-and-client": "start-test server 'http://localhost:3000/healthcheck' client",
"start:services": "docker-compose up db",
"storybook": "coko-storybook",
"test:all:chrome": "start-test test:server-and-client 4000 test:chrome",
"test:all:firefox": "start-test test:server-and-client 4000 test:firefox",
"test:chrome": "cypress run --browser chrome",
......@@ -56,6 +57,7 @@
"bcrypt": "^3.0.6",
"formik": "^2.0.0",
"pg-boss": "3.1.7",
"prettier": "2.2.1",
"prosemirror-gapcursor": "^1.1.3",
"prosemirror-model": "1.11.2"
},
......@@ -63,6 +65,7 @@
"@apollo/client": "3.2.2",
"@apollo/react-testing": "3.1.4",
"@babel/core": "7.11.6",
"@coko/storybook": "^1.2.2",
"@guardian/prosemirror-invisibles": "1.2.1",
"@pubsweet/base-model": "4.0.0",
"@pubsweet/component-send-email": "0.4.3",
......@@ -76,7 +79,6 @@
"apollo-link-context": "1.0.20",
"apollo-link-schema": "1.2.5",
"apollo-upload-client": "14.1.2",
"bcrypt": "^5.0.0",
"body-parser": "^1.19.0",
"config": "3.3.2",
"cookie-parser": "^1.4.5",
......@@ -88,13 +90,11 @@
"got": "11.7.0",
"graphql": "14.7.0",
"graphql-middleware": "4.0.2",
"graphql-shield": "7.3.7",
"graphql-tag": "^2.11.0",
"graphql-shield": "7.5.0",
"graphql-tools": "4.0.8",
"helmet": "^4.4.1",
"history": "4.10.1",
"http-status-codes": "^2.1.4",
"husky": "^4.3.8",
"jimp": "0.16.1",
"joi": "10.6.0",
"loadable-components": "0.4.0",
......@@ -117,11 +117,9 @@
"pubsweet": "5.1.14",
"pubsweet-client": "10.2.5",
"pubsweet-server": "^13.11.6",
"re2": "^1.15.9",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-dropzone": "10.2.2",
"react-hot-loader": "^4.13.0",
"react-html-parser": "2.0.2",
"react-image": "4.0.3",
"react-js-pagination": "^3.0.3",
......@@ -135,7 +133,6 @@
"regenerator-runtime": "^0.13.7",
"styled-components": "4.4.1",
"supertest": "3.4.2",
"url-regex-safe": "^1.0.2",
"waait": "^1.0.5",
"wax-prosemirror-core": "0.0.10",
"wax-prosemirror-plugins": "0.0.10",
......@@ -175,9 +172,8 @@
"compression-webpack-plugin": "3.1.0",
"copy-webpack-plugin": "4.6.0",
"css-loader": "0.28.11",
"cypress": "^6.2.0",
"cypress": "5.3.0",
"cypress-file-upload": "4.1.1",
"cypress-log-to-output": "^1.1.2",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "1.1.11",
"html-webpack-plugin": "3.2.0",
......@@ -186,6 +182,7 @@
"mini-css-extract-plugin": "0.11.2",
"node-wait-for-it": "^0.2.0",
"nodemon": "^2.0.6",
"react-hot-loader": "^4.13.0",
"react-router-redux": "5.0.0-alpha.9",
"sass-loader": "6.0.7",
"speed-measure-webpack-plugin": "1.3.3",
......
source diff could not be displayed: it is too large. Options to address this: view the blob.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment