Skip to content

Commit 7f814dd

Browse files
committed
Cleanup Reactions component
1 parent 093c8ef commit 7f814dd

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@programmer_network/yail",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"description": "Programmer Network's official UI library for React",
55
"author": "Aleksandar Grbic - (https://programmer.network)",
66
"publishConfig": {

src/Components/Reactions/reactions.stories.tsx

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,10 @@ Default.args = {
2626
dislikesCount: 22,
2727
onLike: action("liked"),
2828
onDislike: action("disliked"),
29-
shareUrl: "https://www.google.com",
30-
commentCount: 10,
3129
isDisliking: false,
3230
isLiking: false,
3331
hasDisliked: false,
34-
hasLiked: true,
35-
onShared: action("shared")
32+
hasLiked: true
3633
};
3734

3835
export const Liked = Template.bind({});
@@ -60,15 +57,3 @@ DislikingInProgress.args = {
6057
...Default.args,
6158
isDisliking: true
6259
};
63-
64-
export const WithCommentsDisabled = Template.bind({});
65-
WithCommentsDisabled.args = {
66-
...Default.args,
67-
commentCount: 0
68-
};
69-
70-
export const WithSharingDisabled = Template.bind({});
71-
WithSharingDisabled.args = {
72-
...Default.args,
73-
shareUrl: undefined
74-
};

src/Components/Reactions/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@ export enum ShareType {
66
export interface IReactionsProps {
77
hasLiked: boolean;
88
hasDisliked: boolean;
9-
commentCount: number;
109
likesCount: number;
1110
dislikesCount: number;
1211
onLike: () => void;
13-
onShared?: (type: ShareType) => void;
1412
onDislike: () => void;
1513
isLiking: boolean;
1614
isDisliking: boolean;
17-
shareUrl?: string;
1815
}

0 commit comments

Comments
 (0)