Skip to content
Snippets Groups Projects
Commit 6d5385b2 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

do not hide comment reply buttons when no content

parent db9533ad
No related branches found
No related tags found
1 merge request!161Connect ui
......@@ -36,6 +36,7 @@ const Button = styled.button`
padding: 8px 16px;
${props => props.primary && primary}
${props => props.disabled && `cursor: not-allowed;`}
`;
const ButtonGroup = styled.div`
......@@ -77,17 +78,17 @@ const CommentReply = props => {
/>
</TextWrapper>
{value.length > 0 && (
<ActionWrapper>
<ButtonGroup>
<Button disabled={value.length === 0} primary type="submit">
Post
</Button>
<Button onClick={resetValue}>Cancel</Button>
</ButtonGroup>
</ActionWrapper>
)}
<ActionWrapper>
<ButtonGroup>
<Button disabled={value.length === 0} primary type="submit">
Post
</Button>
<Button disabled={value.length === 0} onClick={resetValue}>
Cancel
</Button>
</ButtonGroup>
</ActionWrapper>
</form>
</Wrapper>
);
......
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