File tree Expand file tree Collapse file tree
src/features/cards/components/hashnodeCard Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { useCallback } from 'react'
2+ import { AiTwotoneHeart } from 'react-icons/ai'
3+ import { BiCommentDetail } from 'react-icons/bi'
24import { Card } from 'src/components/Elements'
35import { ListComponent } from 'src/components/List'
46import { Article , CardPropsType } from 'src/types'
@@ -48,7 +50,19 @@ export function HashnodeCard(props: CardPropsType) {
4850 sortBy = { sortBy }
4951 language = { language || GLOBAL_TAG . value }
5052 globalTag = { GLOBAL_TAG }
51- sortOptions = { [ ] }
53+ sortOptions = { ( defaults ) => [
54+ ...defaults ,
55+ {
56+ label : 'Reactions' ,
57+ value : 'points_count' ,
58+ icon : < AiTwotoneHeart /> ,
59+ } ,
60+ {
61+ label : 'Comments' ,
62+ value : 'comments_count' ,
63+ icon : < BiCommentDetail /> ,
64+ } ,
65+ ] }
5266 />
5367 }
5468 { ...props } >
You can’t perform that action at this time.
0 commit comments