Skip to content
Snippets Groups Projects
Commit acbd7427 authored by MB Pro's avatar MB Pro
Browse files

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into MenuCountry-improvement

parents 882423f6 141d2957
No related branches found
No related tags found
3 merge requests!233S26 updates,!230S26 Updates,!220Menu country improvement
...@@ -34,6 +34,7 @@ const ActionLink = ({ ...@@ -34,6 +34,7 @@ const ActionLink = ({
(iconPosition === 'left' && ( (iconPosition === 'left' && (
<FontIconButton <FontIconButton
className={`${fontIcon} fontIconStyle`} className={`${fontIcon} fontIconStyle`}
onClick={onClick}
paddingBottom={paddingBottom} paddingBottom={paddingBottom}
paddingRight={paddingRight} paddingRight={paddingRight}
size={size} size={size}
...@@ -50,6 +51,7 @@ const ActionLink = ({ ...@@ -50,6 +51,7 @@ const ActionLink = ({
(iconPosition === 'right' && ( (iconPosition === 'right' && (
<FontIconButton <FontIconButton
className={`${fontIcon} fontIconStyle`} className={`${fontIcon} fontIconStyle`}
onClick={onClick}
paddingBottom={paddingBottom} paddingBottom={paddingBottom}
paddingRight={paddingRight} paddingRight={paddingRight}
size={size} size={size}
...@@ -109,12 +111,6 @@ const ExternalLink = styled.a` ...@@ -109,12 +111,6 @@ const ExternalLink = styled.a`
color: ${th('colorSecondary')}; color: ${th('colorSecondary')};
font-family: ${th('fontReading')}; font-family: ${th('fontReading')};
text-decoration: underline; text-decoration: underline;
&:hover {
color: ${th('colorSecondary')};
font-family: ${th('fontReading')};
text-decoration: underline;
}
` `
const CustomLink = ExternalLink.withComponent(Link) const CustomLink = ExternalLink.withComponent(Link)
...@@ -122,6 +118,9 @@ const Root = styled.div` ...@@ -122,6 +118,9 @@ const Root = styled.div`
align-items: center; align-items: center;
justify-content: center; justify-content: center;
display: ${props => (props.to ? 'inline-flex' : 'flex')}; display: ${props => (props.to ? 'inline-flex' : 'flex')};
&:hover * {
color: ${th('colorSecondary')};
}
${marginHelper}; ${marginHelper};
${paddingHelper}; ${paddingHelper};
......
...@@ -75,7 +75,7 @@ const ManuscriptCard = ({ ...@@ -75,7 +75,7 @@ const ManuscriptCard = ({
</Text> </Text>
)} )}
</Row> </Row>
<Row alignItems="center" justify="flex-start"> <Row alignItems="center" height={5} justify="flex-start">
<H4>Handling editor</H4> <H4>Handling editor</H4>
<Text ml={1} mr={3} whiteSpace="nowrap"> <Text ml={1} mr={3} whiteSpace="nowrap">
{get(handlingEditor, 'name', 'Unassigned')} {get(handlingEditor, 'name', 'Unassigned')}
...@@ -99,7 +99,7 @@ const ManuscriptCard = ({ ...@@ -99,7 +99,7 @@ const ManuscriptCard = ({
<DeleteIcon <DeleteIcon
fontIcon="deleteIcon" fontIcon="deleteIcon"
onClick={showModal} onClick={showModal}
paddingBottom={2} paddingBottom={1}
paddingRight={0} paddingRight={0}
size={1.65} size={1.65}
> >
...@@ -122,7 +122,7 @@ const ManuscriptCard = ({ ...@@ -122,7 +122,7 @@ const ManuscriptCard = ({
</Row> </Row>
</MainContainer> </MainContainer>
<SideNavigation> <SideNavigation>
<IconButton fontIcon="arrowRight" iconSize={2} pl={0.4} /> <IconButton fontIcon="arrowRight" iconSize={2} pl={0.2} />
</SideNavigation> </SideNavigation>
</Root> </Root>
) )
......
...@@ -75,7 +75,7 @@ const DeleteManuscriptModal = props => ( ...@@ -75,7 +75,7 @@ const DeleteManuscriptModal = props => (
<DeleteIcon <DeleteIcon
fontIcon="deleteIcon" fontIcon="deleteIcon"
onClick={showModal} onClick={showModal}
paddingBottom={2} paddingBottom={1}
paddingRight={0} paddingRight={0}
size={1.65} size={1.65}
> >
...@@ -94,7 +94,10 @@ DeleteManuscriptModal.defaultProps = { ...@@ -94,7 +94,10 @@ DeleteManuscriptModal.defaultProps = {
} }
// #region styles // #region styles
const DeleteIcon = styled(ActionLink)`` const DeleteIcon = styled(ActionLink)`
cursor: default;
color: ${th('colorWarning')};
`
const Root = styled.div` const Root = styled.div`
align-items: center; align-items: center;
background: ${th('colorBackgroundHue')}; background: ${th('colorBackgroundHue')};
......
...@@ -18,13 +18,7 @@ const OpenUserForm = ({ edit, user, onSubmit, modalKey }) => ( ...@@ -18,13 +18,7 @@ const OpenUserForm = ({ edit, user, onSubmit, modalKey }) => (
> >
{showModal => {showModal =>
edit ? ( edit ? (
<IconButton <IconButton fontIcon="editIcon" iconSize={2} onClick={showModal} />
fontIcon="editIcon"
iconSize={2}
onClick={showModal}
paddingBottom={1.5}
pt={1 / 2}
/>
) : ( ) : (
<ActionLink icon="plus" onClick={showModal}> <ActionLink icon="plus" onClick={showModal}>
ADD USER ADD USER
......
...@@ -51,6 +51,7 @@ import { onChange, onSubmit, setInitialValues, validate } from './utils' ...@@ -51,6 +51,7 @@ import { onChange, onSubmit, setInitialValues, validate } from './utils'
const Wizard = ({ const Wizard = ({
step, step,
history, history,
canEdit,
journal, journal,
prevStep, prevStep,
isEditMode, isEditMode,
...@@ -58,13 +59,12 @@ const Wizard = ({ ...@@ -58,13 +59,12 @@ const Wizard = ({
isFirstStep, isFirstStep,
handleSubmit, handleSubmit,
getButtonText, getButtonText,
isLastFragment,
isFilesFetching, isFilesFetching,
isAuthorsFetching, isAuthorsFetching,
journal: { manuscriptTypes = [] }, journal: { manuscriptTypes = [] },
...rest ...rest
}) => }) =>
isLastFragment ? ( canEdit ? (
<Root className="wizard-root"> <Root className="wizard-root">
<Steps currentStep={step}> <Steps currentStep={step}>
{wizardSteps.map(({ stepTitle }) => ( {wizardSteps.map(({ stepTitle }) => (
...@@ -89,12 +89,7 @@ const Wizard = ({ ...@@ -89,12 +89,7 @@ const Wizard = ({
mr={1} mr={1}
onClick={isFirstStep ? history.goBack : prevStep} onClick={isFirstStep ? history.goBack : prevStep}
> >
<IconButton <IconButton fontIcon="arrowLeft" mb={0.1} pb={0.3} />
fontIcon="arrowLeft"
mb={0.1}
paddingBottom={1.2}
paddingRight={0.9}
/>
Back Back
</Button> </Button>
<Button <Button
...@@ -104,11 +99,7 @@ const Wizard = ({ ...@@ -104,11 +99,7 @@ const Wizard = ({
primary primary
> >
{getButtonText()} {getButtonText()}
<IconButton <IconButton fontIcon="arrowRight" mb={0.1} pb={0.1} />
fontIcon="arrowRight"
mb={0.1}
paddingBottom={0.5}
/>
</Button> </Button>
</Fragment> </Fragment>
)} )}
...@@ -189,8 +180,13 @@ export default compose( ...@@ -189,8 +180,13 @@ export default compose(
reduxAuthorError, reduxAuthorError,
isLastFragment: isLastFragment:
get(fragment, 'id', '') === last(get(collection, 'fragments', [])), get(fragment, 'id', '') === last(get(collection, 'fragments', [])),
status: get(collection, 'status', ''),
}), }),
), ),
withProps(({ status, isLastFragment }) => ({
canEdit:
isLastFragment && !(status === 'accepted' || status === 'rejected'),
})),
withHandlers({ withHandlers({
getButtonText: ({ isLastStep, isEditMode }) => () => { getButtonText: ({ isLastStep, isEditMode }) => () => {
if (isEditMode && isLastStep) { if (isEditMode && isLastStep) {
......
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