Skip to content
Snippets Groups Projects
Commit 694e769e authored by chris's avatar chris
Browse files

overrides

parent ca840534
No related branches found
No related tags found
No related merge requests found
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import styled, { css } from 'styled-components'; import styled, { css } from 'styled-components';
import { th } from '@pubsweet/ui-toolkit'; import { th, override } from '@pubsweet/ui-toolkit';
import CommentItemList from './CommentItemList'; import CommentItemList from './CommentItemList';
import CommentReply from './CommentReply'; import CommentReply from './CommentReply';
...@@ -33,12 +33,16 @@ const Wrapper = styled.div` ...@@ -33,12 +33,16 @@ const Wrapper = styled.div`
font-family: ${th('fontInterface')}; font-family: ${th('fontInterface')};
${props => !props.active && inactive} ${props => !props.active && inactive}
${override('Wax.CommentWrapper')}
`; `;
const Head = styled.div` const Head = styled.div`
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
padding: 8px 16px 0; padding: 8px 16px 0;
${override('Wax.CommentHead')}
`; `;
const Resolve = styled.button` const Resolve = styled.button`
...@@ -55,6 +59,8 @@ const Resolve = styled.button` ...@@ -55,6 +59,8 @@ const Resolve = styled.button`
} }
${props => props.isReadOnly && inactiveButton} ${props => props.isReadOnly && inactiveButton}
${override('Wax.CommentResolve')}
`; `;
const StyledReply = styled(CommentReply)` const StyledReply = styled(CommentReply)`
......
...@@ -2,6 +2,8 @@ import React, { useEffect, useState } from 'react'; ...@@ -2,6 +2,8 @@ import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import styled from 'styled-components'; import styled from 'styled-components';
import { clone, uniqueId } from 'lodash'; import { clone, uniqueId } from 'lodash';
import { override } from '@pubsweet/ui-toolkit';
import CommentItem from './CommentItem'; import CommentItem from './CommentItem';
const Wrapper = styled.div` const Wrapper = styled.div`
...@@ -10,6 +12,7 @@ const Wrapper = styled.div` ...@@ -10,6 +12,7 @@ const Wrapper = styled.div`
> div:not(:last-of-type) { > div:not(:last-of-type) {
margin-bottom: 16px; margin-bottom: 16px;
} }
${override('Wax.CommentItemWrapper')}
`; `;
const More = styled.span` const More = styled.span`
...@@ -19,6 +22,8 @@ const More = styled.span` ...@@ -19,6 +22,8 @@ const More = styled.span`
/* cursor: default; */ /* cursor: default; */
display: inline-block; display: inline-block;
padding: 4px 8px; padding: 4px 8px;
${override('Wax.CommentMore')}
`; `;
const CommentItemList = props => { const CommentItemList = props => {
......
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