02ed9bf7e1
* Remove unused hideOutcome in comments * Remove unused hideOutcome in comments * Add replyToComment fields to Comment * Add 1 threaded replies to comments & answers * Allow smooth scrolling within pages via # * remove yarn-error log * correct spelling * Remove smooth-scroll-to-hashtag component * Cleanup & show user position/bets in replies
19 lines
435 B
TypeScript
19 lines
435 B
TypeScript
// Currently, comments are created after the bet, not atomically with the bet.
|
|
// They're uniquely identified by the pair contractId/betId.
|
|
export type Comment = {
|
|
id: string
|
|
contractId: string
|
|
betId?: string
|
|
answerOutcome?: string
|
|
replyToCommentId?: string
|
|
userId: string
|
|
|
|
text: string
|
|
createdTime: number
|
|
|
|
// Denormalized, for rendering comments
|
|
userName: string
|
|
userUsername: string
|
|
userAvatarUrl?: string
|
|
}
|