3a33efa8db
* Allow comments to reference answers * Add comment inputs for free response answers * condense comment logic in one component * Add General Comments section to FR answers * Prompt signin even if no comment * Remove unused & refactor * Simplify general comments logic, toggle comment boxes * Clarify rendering logic
18 lines
407 B
TypeScript
18 lines
407 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
|
|
userId: string
|
|
|
|
text: string
|
|
createdTime: number
|
|
|
|
// Denormalized, for rendering comments
|
|
userName: string
|
|
userUsername: string
|
|
userAvatarUrl?: string
|
|
}
|