Skip to content
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

Statistics Update #163

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/components/statistics/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export type ActivityEvent =
| 'AccountFollowed'

export const eventArr = [
'PostReactionCreated,CommentReactionCreated',
'PostCreated',
'SpaceCreated',
'SpaceFollowed',
'PostCreated',
'PostShared,CommentShared',
// 'CommentCreated,CommentReplyCreated',
'PostReactionCreated,CommentReactionCreated',
'AccountFollowed',
]

Expand Down Expand Up @@ -99,7 +99,9 @@ export function InnerStatistics(props: FormProps) {
>
<div onClick={() => showModal(data.activityType)}>
<Stats
title={messages.statistics[data?.activityType as ActivityEvent] + ' in the period'}
title={
messages.statistics[data?.activityType as ActivityEvent] + ' during the period'
}
total={data.countByPeriod}
contentHeight={50}
footer={
Expand Down
5 changes: 3 additions & 2 deletions src/components/voting/SuperLike.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ export default function SuperLike({ post, ...props }: SuperLikeProps) {
)

let tooltipTitle = ''
if (isPostCreatedMoreThan1Week) tooltipTitle = 'You cannot like posts that are older than 7 days'
else if (isMyPost) tooltipTitle = 'You cannot like your own post'
if (isMyPost) tooltipTitle = 'You cannot like your own post'
else if (isPostCreatedMoreThan1Week)
tooltipTitle = 'You cannot like posts that are older than 7 days'

const button = (
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/messages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default {
PostSharing: 'Posts shared',
'PostShared,CommentShared': 'Posts shared',
'CommentCreated,CommentReplyCreated': 'Comments created',
'PostReactionCreated,CommentReactionCreated': 'Upvotes + downvotes',
'PostReactionCreated,CommentReactionCreated': 'Likes',
},
connectingToNetwork: 'Connecting to the network...',
waitingForTx: 'Waiting for transaction to complete.',
Expand Down
Loading