Skip to content
Snippets Groups Projects
Commit 08b7a5a8 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

chore(fix lint and remove unused files):

parent 4c02f4c6
No related branches found
No related tags found
1 merge request!43Sprint #19
Showing with 7 additions and 47 deletions
import React from 'react'
import PropTypes from 'prop-types'
import Text from './Text'
import Label from './Label'
import Row from './gridItems/Row'
import Item from './gridItems/Item'
import { Text, Row, Label, Item } from './'
const defaultPerson = {
email: '',
......@@ -46,7 +43,3 @@ PersonInfo.proTypes = {
}
export default PersonInfo
// #region styles
// #endregion
......@@ -29,5 +29,5 @@ const files = {
supplementary: [],
};
<WizardFiles files={files} />
<WizardFiles files={files} uploadFile={f => console.log('upload file ', f)} />
```
......@@ -4,8 +4,7 @@ import { th } from '@pubsweet/ui-toolkit'
import { H2, Button, Spinner, ErrorText } from '@pubsweet/ui'
import { compose, setDisplayName, withHandlers } from 'recompose'
import Text from '../Text'
import IconButton from '../IconButton'
import { IconButton, Text } from '../'
const MultiAction = ({
title,
......
......@@ -3,7 +3,7 @@ import { get } from 'lodash'
import { compose, withHandlers } from 'recompose'
import { withModal } from 'pubsweet-component-modal/src/components'
import MultiAction from './MultiAction'
import { MultiAction } from './'
const OpenModal = ({ onClickEvent, children }) => (
<div>{children(onClickEvent)}</div>
......
......@@ -4,8 +4,7 @@ import { th } from '@pubsweet/ui-toolkit'
import { Button, Icon, H2 } from '@pubsweet/ui'
import { compose, setDisplayName, withHandlers } from 'recompose'
import Text from '../Text'
import IconButton from '../IconButton'
import { IconButton, Text } from '../'
const SingleActionModal = ({
error,
......
......@@ -2,8 +2,6 @@ import React, { Fragment } from 'react'
import { th } from '@pubsweet/ui-toolkit'
import styled, { css } from 'styled-components'
import { FileItem } from 'pubsweet-components-faraday/src/components/Files'
const Files = ({
files: {
manuscripts = [],
......@@ -19,9 +17,6 @@ const Files = ({
<span>Main manuscript</span>
<div />
</Header>
{manuscripts.map(file => (
<FileItem compact id={file.id} key={file.id} {...file} />
))}
</Fragment>
)}
{!!supplementary.length && (
......@@ -30,9 +25,6 @@ const Files = ({
<span>Supplemetary files</span>
<div />
</Header>
{supplementary.map(file => (
<FileItem compact id={file.id} key={file.id} {...file} />
))}
</Fragment>
)}
{!!coverLetter.length && (
......@@ -41,9 +33,6 @@ const Files = ({
<span>Cover letter</span>
<div />
</Header>
{coverLetter.map(file => (
<FileItem compact id={file.id} key={file.id} {...file} />
))}
</Fragment>
)}
</Root>
......
import React, { Fragment } from 'react'
import { get, isEmpty } from 'lodash'
import { get } from 'lodash'
import { withProps } from 'recompose'
import { th } from '@pubsweet/ui-toolkit'
import styled, { css } from 'styled-components'
import { FileItem } from 'pubsweet-components-faraday/src/components/Files'
import { Expandable } from '../molecules'
......@@ -18,14 +17,6 @@ const ResponseToReviewers = ({
<Text>{comments}</Text>
</Fragment>
)}
{!isEmpty(files) && (
<Fragment>
<Label>Files</Label>
{files.map(file => (
<FileItem compact id={file.id} key={file.id} {...file} />
))}
</Fragment>
)}
</Expandable>
</Root>
)
......
......@@ -5,7 +5,6 @@ import { th } from '@pubsweet/ui-toolkit'
import { withJournal } from 'xpub-journal'
import styled, { css } from 'styled-components'
import { DateParser } from 'pubsweet-components-faraday/src/components'
import { FileItem } from 'pubsweet-components-faraday/src/components/Files'
import { ShowMore } from './'
......@@ -71,11 +70,6 @@ const ReviewReportCard = ({
<Row left>
<Label>Files</Label>
</Row>
<Row left>
{publicComment.files.map(file => (
<FileItem compact id={file.id} key={file.id} {...file} />
))}
</Row>
</Fragment>
)}
......
......@@ -9,7 +9,6 @@ import { reduxForm, change as changeForm, initialize } from 'redux-form'
import { ReviewersSelect } from './'
import { inviteReviewer } from '../../redux/reviewers'
import { ValidatedTextField } from '../AuthorList/FormItems'
const ReviewerForm = ({
users,
......@@ -23,11 +22,6 @@ const ReviewerForm = ({
<Root>
<Row>
<ReviewersSelect onSelect={selectReviewer} values={filteredUsers()} />
<ValidatedTextField isRequired label="Last name*" name="lastName" />
</Row>
<Row>
<ValidatedTextField label="First name" name="firstName" />
<ValidatedTextField label="Affiliation" name="affiliation" />
</Row>
{reviewerError && (
<CenterRow>
......
......@@ -18,6 +18,7 @@ module.exports = {
components: ['../component-faraday-ui/src/gridItems/[A-Z]*.js'],
},
],
skipComponentsWithoutExample: true,
pagePerSection: true,
styleguideComponents: {
Wrapper: path.join(__dirname, 'src/Wrapper'),
......
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