Skip to content

Commit

Permalink
fix: clean up linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
erichartline committed Apr 30, 2019
1 parent fad87cd commit f7f278b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 28 deletions.
11 changes: 10 additions & 1 deletion src/components/pages/Downloads/Citations.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
import React from "react"
import { withStyles } from "@material-ui/core/styles"

Expand All @@ -10,7 +11,14 @@ const styles = theme => ({
},
})

const Citations = props => {
type Props = {
/** Material-UI styling */
classes: Object,
/** Citations data */
data: Object,
}

const Citations = (props: Props) => {
const { classes } = props

return (
Expand All @@ -26,6 +34,7 @@ const Citations = props => {
<a
href={props.data.attributes.citation.link}
target="_blank"
rel="noopener noreferrer"
style={{ textDecoration: "none" }}>
[Pubmed]
</a>
Expand Down
52 changes: 25 additions & 27 deletions src/components/pages/EditablePages/AddPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,31 @@ const AddPage = (props: Props) => {

return (
<Authorization
// eslint-disable-next-line
render={({ canEditPages, verifiedToken }) => {
return (
<div>
{canEditPages &&
verifiedToken === false && <ErrorNotification error={error} />}
{canEditPages && (
<Flex wrap justify="center">
<Box w="100%" pb={5}>
<Banner>
<h2>Add Editable Page for Route:</h2>
<h3>{url}</h3>
</Banner>
</Box>
<br />
<Box w="100%">
{/* <AddPageForm slug={slug} url={url} /> */}
editor coming soon
</Box>
</Flex>
)}
{!canEditPages && (
<ErrorNotification error="You have reached this page in error." />
)}
</div>
)
}}
render={({ canEditPages, verifiedToken }) => (
<div>
{canEditPages && verifiedToken === false && (
<ErrorNotification error={error} />
)}
{canEditPages && (
<Flex wrap justify="center">
<Box w="100%" pb={5}>
<Banner>
<h2>Add Editable Page for Route:</h2>
<h3>{url}</h3>
</Banner>
</Box>
<br />
<Box w="100%">
{/* <AddPageForm slug={slug} url={url} /> */}
editor coming soon
</Box>
</Flex>
)}
{!canEditPages && (
<ErrorNotification error="You have reached this page in error." />
)}
</div>
)}
/>
)
}
Expand Down

0 comments on commit f7f278b

Please sign in to comment.