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

style(dashboard-card): change style of decline agree he buttons

parent 1e9702d3
No related branches found
No related tags found
No related merge requests found
...@@ -164,6 +164,7 @@ export default compose( ...@@ -164,6 +164,7 @@ export default compose(
const assignedHE = const assignedHE =
assignedPeople && assignedPeople.find(p => p.role === 'handlingEditor') assignedPeople && assignedPeople.find(p => p.role === 'handlingEditor')
// this can be changed, but it works; cba
if (isAdmin || isEic) { if (isAdmin || isEic) {
if (status === 'submitted' || status === 'he-invited') if (status === 'submitted' || status === 'he-invited')
return <EditorInChiefActions project={project} /> return <EditorInChiefActions project={project} />
......
...@@ -180,9 +180,9 @@ const HEActions = styled.div` ...@@ -180,9 +180,9 @@ const HEActions = styled.div`
const AssignButton = styled(Button)` const AssignButton = styled(Button)`
${defaultText}; ${defaultText};
align-items: center; align-items: center;
background-color: ${th('colorPrimary')};
color: ${th('colorTextReverse')}; color: ${th('colorTextReverse')};
text-align: center; background-color: ${th('colorPrimary')};
height: calc(${th('subGridUnit')}*5); height: calc(${th('subGridUnit')}*5);
text-align: center;
` `
// #endregion // #endregion
import React from 'react' import React from 'react'
import { connect } from 'react-redux' import { connect } from 'react-redux'
import styled from 'styled-components'
import { th, Button } from '@pubsweet/ui'
import { actions } from 'pubsweet-client' import { actions } from 'pubsweet-client'
import { th, Button } from '@pubsweet/ui'
import styled, { css } from 'styled-components'
import { withHandlers, compose, withState } from 'recompose' import { withHandlers, compose, withState } from 'recompose'
import { import {
withModal, withModal,
...@@ -45,10 +45,10 @@ const ModalComponent = ({ type, ...rest }) => ...@@ -45,10 +45,10 @@ const ModalComponent = ({ type, ...rest }) =>
const HandlingEditorActions = ({ showHEModal }) => ( const HandlingEditorActions = ({ showHEModal }) => (
<Root> <Root>
<Button onClick={showHEModal('decline')}>DECLINE</Button> <DecisionButton onClick={showHEModal('decline')}>DECLINE</DecisionButton>
<Button onClick={showHEModal()} primary> <DecisionButton onClick={showHEModal()} primary>
AGREE AGREE
</Button> </DecisionButton>
</Root> </Root>
) )
...@@ -111,6 +111,22 @@ export default compose( ...@@ -111,6 +111,22 @@ export default compose(
)(HandlingEditorActions) )(HandlingEditorActions)
// #region styled-components // #region styled-components
const defaultText = css`
font-family: ${th('fontReading')};
font-size: ${th('fontSizeBaseSmall')};
`
const DecisionButton = styled(Button)`
${defaultText};
align-items: center;
color: ${({ primary }) =>
primary ? th('colorTextReverse') : th('colorPrimary')});
background-color: ${({ primary }) =>
primary ? th('colorPrimary') : th('backgroundColorReverse')};
height: calc(${th('subGridUnit')}*5);
text-align: center;
`
const DeclineRoot = styled.div` const DeclineRoot = styled.div`
align-items: center; align-items: center;
background-color: ${th('backgroundColor')}; background-color: ${th('backgroundColor')};
......
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