Skip to content

Commit

Permalink
Merge pull request #3139 from goratt12/3134-user-on-question-list
Browse files Browse the repository at this point in the history
feat(question): add username and date to question listing
  • Loading branch information
thisislawatts authored Jan 3, 2024
2 parents 7e57be2 + a5c5a49 commit 73e5a2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/Question/QuestionListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Link } from 'react-router-dom'
import { Card, Flex, Heading } from 'theme-ui'

import { useQuestionStore } from 'src/stores/Question/question.store'
import { UserNameTag } from '../common/UserNameTag/UserNameTag'

import type { IQuestion } from 'src/models'

Expand Down Expand Up @@ -65,6 +66,12 @@ export const QuestionListing = () => {
contentType="question"
sx={{ top: 0, position: 'absolute', right: 0 }}
/>
<UserNameTag
userName={q._createdBy}
countryCode={q.creatorCountry}
created={q._created}
action="Asked"
/>
</Card>
)
})
Expand Down

0 comments on commit 73e5a2f

Please sign in to comment.