Skip to content
Snippets Groups Projects
Commit 33cd414f authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

refactor(theme): use H2 from pubsweet/ui override

parent 0041b5fd
No related branches found
No related tags found
1 merge request!43Sprint #19
...@@ -6,7 +6,7 @@ import { ActionLink, Text, Row } from 'pubsweet-component-faraday-ui' ...@@ -6,7 +6,7 @@ import { ActionLink, Text, Row } from 'pubsweet-component-faraday-ui'
const StepOne = () => ( const StepOne = () => (
<Fragment> <Fragment>
<CustomH2>1. Pre-Submission Checklist</CustomH2> <H2>1. Pre-Submission Checklist</H2>
<Row mb={2}> <Row mb={2}>
<Text align="center" secondary> <Text align="center" secondary>
Before moving forward, please make sure you have all the required files Before moving forward, please make sure you have all the required files
...@@ -97,8 +97,4 @@ const RootCheckbox = styled.div.attrs({ ...@@ -97,8 +97,4 @@ const RootCheckbox = styled.div.attrs({
} }
} }
` `
const CustomH2 = styled(H2)`
margin: 0;
`
// #endregion // #endregion
import React, { Fragment } from 'react' import React, { Fragment } from 'react'
import { get } from 'lodash' import { get } from 'lodash'
import { Field } from 'redux-form' import { Field } from 'redux-form'
import styled from 'styled-components'
import { H2, Icon } from '@pubsweet/ui' import { H2, Icon } from '@pubsweet/ui'
import { Row, Text, WizardFiles } from 'pubsweet-component-faraday-ui' import { Row, Text, WizardFiles } from 'pubsweet-component-faraday-ui'
...@@ -18,7 +17,7 @@ const StepThree = ({ ...@@ -18,7 +17,7 @@ const StepThree = ({
getSignedUrl, getSignedUrl,
}) => ( }) => (
<Fragment> <Fragment>
<CustomH2>3. Manuscript Files Upload</CustomH2> <H2>3. Manuscript Files Upload</H2>
<Row mb={2}> <Row mb={2}>
<Text align="center" display="flex" secondary> <Text align="center" display="flex" secondary>
Drag & drop files in the specific section or click{' '} Drag & drop files in the specific section or click{' '}
...@@ -53,9 +52,3 @@ const StepThree = ({ ...@@ -53,9 +52,3 @@ const StepThree = ({
) )
export default StepThree export default StepThree
// #region styles
const CustomH2 = styled(H2)`
margin: 0;
`
// #endregion
...@@ -27,7 +27,7 @@ const StepTwo = ({ ...@@ -27,7 +27,7 @@ const StepTwo = ({
...rest ...rest
}) => ( }) => (
<Fragment> <Fragment>
<CustomH2>2. Manuscript & Author Details</CustomH2> <H2>2. Manuscript & Author Details</H2>
<Row mb={2}> <Row mb={2}>
<Text align="center" secondary> <Text align="center" secondary>
Please provide the details of all the authors of this manuscript, in the Please provide the details of all the authors of this manuscript, in the
...@@ -142,8 +142,4 @@ const MoreInfoLink = styled.a` ...@@ -142,8 +142,4 @@ const MoreInfoLink = styled.a`
color: #d8d8d8; color: #d8d8d8;
margin-left: 3px; margin-left: 3px;
` `
const CustomH2 = styled(H2)`
margin: 0;
`
// #endregion // #endregion
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