03f36cf954
* add id, userId to comment * change user info cloud function and script; move cleanUsername to common * change user info script * fix rules * add fund button: useLocation hook * profile page * merge * profile stuff * avatar uploading to storage bucket * changeUserInfo: use transaction * Styles for profile page * Edit mode for profile, and more styles Co-authored-by: James Grugett <jahooma@gmail.com>
17 lines
383 B
TypeScript
17 lines
383 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
|
|
userId: string
|
|
|
|
text: string
|
|
createdTime: number
|
|
|
|
// Denormalized, for rendering comments
|
|
userName?: string
|
|
userUsername?: string
|
|
userAvatarUrl?: string
|
|
}
|