Skip to content

Commit

Permalink
Merge pull request #1189 from ONEARMY/feat/comment-login-link
Browse files Browse the repository at this point in the history
add link to login from comments
  • Loading branch information
chrismclarke authored Jul 16, 2021
2 parents f4529e6 + 189d4ae commit 17b5711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Comment/CommentTextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Box, Text } from 'rebass/styled-components'
import theme from 'src/themes/styled.theme'
import { Avatar } from '../Avatar'
import { useCommonStores } from 'src'
import { Link } from 'react-router-dom'

export interface IProps {
onSubmit: (string) => Promise<void>
Expand Down Expand Up @@ -81,7 +82,7 @@ export const CommentTextArea = ({ onChange, comment, loading }) => {
/>
) : (
<Text height="2em" lineHeight="2em">
Hi there! Login to leave a comment
Hi there! <Link to="/sign-in">Login</Link> to leave a comment
</Text>
)}
</TextBoxStyled>
Expand Down

0 comments on commit 17b5711

Please sign in to comment.