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

feat(*): add in Accordion view on published manuscript front page

parent dac1b54e
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 { JournalContext } from '../../xpub-journal/src'
import queries from './queries'
import { Container, Placeholder, VisualAbstract } from './style'
import Wax from '../../wax-collab/src/Editoria'
import {
Spinner,
......@@ -16,8 +18,6 @@ import {
Pagination,
} from '../../shared'
import { UserAction as Action } from '../../component-manuscripts/src/style'
const Frontpage = ({ history, ...props }) => {
const [sortName] = useState('created')
const [sortDirection] = useState('DESC')
......@@ -113,11 +113,9 @@ const Frontpage = ({ history, ...props }) => {
file =>
!skipXSweet(file) && (
<p>
<Action
to={`/journal/versions/${manuscript.id}/manuscript`}
>
View Manuscript Text
</Action>
<Accordion label="View Manuscript Text">
<Wax content={manuscript.meta.source} readonly />
</Accordion>
</p>
),
)}
......
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