-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(web-ui): post and reaction notification links #317
Conversation
@@ -16,21 +16,22 @@ type Props = { | |||
readonly notification: NotificationView; | |||
readonly onFollowClick: (relation: RelationView) => Promise<void>; | |||
readonly onCreatorClick: (relation: RelationView) => void; | |||
readonly onReactionClick: (reaction: ReactionView) => void; | |||
readonly onComicClick: (post: PostView) => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
readonly onComicClick: (post: PostView) => void; | |
readonly onPostClick: (post: PostView) => void; |
|
||
return <Column alignX='stretch' alignY='justify' gap='medium'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return <Column alignX='stretch' alignY='justify' gap='medium'> | |
return <Column alignX='stretch' alignY='justify' gap='medium'> |
<Row alignY='stretch' alignX='justify' > | ||
<Text value='single reaction' /> | ||
<ClickArea onClick={() => viewPost(post as PostView)}> | ||
<Text value='all reactions' /> | ||
</ClickArea> | ||
</Row> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can make this a separate component.
|
||
}, [reactions, setReactions]); | ||
}, [navigate, identity]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The identity
dependency can be removed.
import { Column, Ruler } from '../designsystem'; | ||
import useEstablishRelation from './hooks/useEstablishRelation'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { Column, Ruler } from '../designsystem'; | |
import useEstablishRelation from './hooks/useEstablishRelation'; | |
import { Column, Ruler } from '../designsystem'; | |
import useEstablishRelation from './hooks/useEstablishRelation'; |
Missing enter between the external and local imports.
import { ClickArea, Row, Text } from '^/webui/designsystem'; | ||
|
||
type Props = { | ||
readonly onPostClick: () => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
readonly onPostClick: () => void; | |
readonly onShowAllClick: () => void; |
Quality Gate passedIssues Measures |
Fixes #311
Changes proposed in this pull request:
@MaskingTechnology/comify