Skip to content

Commit a45a0a7

Browse files
committed
Refactor reaction types and enhance ArticleCard component
- Updated REACTION_TYPE in domain-models.ts to include comments for each reaction type. - Simplified the ReactionStatus component by removing hardcoded reactions and utilizing dynamic rendering for reactions in ArticleCard. - Improved the styling of reaction buttons in ArticleCard for better user experience. - Added SVG files for new reaction types: CRY, FIRE, HAHA, LOVE, UNICORN, WOW.
1 parent 70d31ac commit a45a0a7

File tree

9 files changed

+119
-86
lines changed

9 files changed

+119
-86
lines changed

public/reactions/CRY.svg

Lines changed: 1 addition & 0 deletions
Loading

public/reactions/FIRE.svg

Lines changed: 14 additions & 0 deletions
Loading

public/reactions/HAHA.svg

Lines changed: 1 addition & 0 deletions
Loading

public/reactions/LOVE.svg

Lines changed: 12 additions & 0 deletions
Loading

public/reactions/UNICORN.svg

Lines changed: 60 additions & 0 deletions
Loading

public/reactions/WOW.svg

Lines changed: 1 addition & 0 deletions
Loading

src/backend/models/domain-models.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ export interface Bookmark {
123123
}
124124

125125
export type REACTION_TYPE =
126-
| "LOVE"
127-
| "UNICORN"
128-
| "WOW"
129-
| "FIRE"
130-
| "CRY"
131-
| "HAHA";
126+
| "LOVE" // ✅
127+
| "UNICORN" // ✅
128+
| "WOW" // ✅
129+
| "FIRE" // ✅
130+
| "CRY" // ✅
131+
| "HAHA"; // ✅
132132

133133
export interface Reaction {
134134
resource_id: string;

0 commit comments

Comments
 (0)