Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
style(web): run biome format on share-page comment components
Richie McIlroyc071aa6d872c
diff --git a/apps/web/app/s/[videoId]/_components/Toolbar.tsx b/apps/web/app/s/[videoId]/_components/Toolbar.tsxindex 2a5c6d9b5..84a9ddb5c 100644--- a/apps/web/app/s/[videoId]/_components/Toolbar.tsx+++ b/apps/web/app/s/[videoId]/_components/Toolbar.tsx@@ -91,14 +91,14 @@ export const Toolbar = ({? null: videoElement?.currentTime || 0;const optimisticComment: CommentType = {- id: (`temp-${Date.now()}` as Comment.CommentId),+ id: `temp-${Date.now()}` as Comment.CommentId,authorId: user.id,authorName: user.name,authorImage: user.imageUrl,content: emoji,createdAt: new Date(),videoId: data.id,- parentCommentId: ("" as Comment.CommentId),+ parentCommentId: "" as Comment.CommentId,type: "emoji",timestamp: currentTime,updatedAt: new Date(),@@ -115,7 +115,7 @@ export const Toolbar = ({content: emoji,videoId: data.id,authorImage: user.imageUrl,- parentCommentId: ("" as Comment.CommentId),+ parentCommentId: "" as Comment.CommentId,type: "emoji",timestamp: currentTime,});@@ -139,14 +139,14 @@ export const Toolbar = ({? null: videoElement?.currentTime || 0;const optimisticComment: CommentType = {- id: (`temp-${Date.now()}` as Comment.CommentId),+ id: `temp-${Date.now()}` as Comment.CommentId,authorId: user.id,authorName: user.name,authorImage: user.imageUrl,content: comment,createdAt: new Date(),videoId: data.id,- parentCommentId: ("" as Comment.CommentId),+ parentCommentId: "" as Comment.CommentId,type: "text",timestamp: currentTime,updatedAt: new Date(),@@ -163,7 +163,7 @@ export const Toolbar = ({content: comment,videoId: data.id,authorImage: user.imageUrl,- parentCommentId: ("" as Comment.CommentId),+ parentCommentId: "" as Comment.CommentId,type: "text",timestamp: currentTime,});diff --git a/apps/web/app/s/[videoId]/_components/tabs/Activity/Comments.tsx b/apps/web/app/s/[videoId]/_components/tabs/Activity/Comments.tsxindex 9fa8e40fb..3c6a3f9a1 100644--- a/apps/web/app/s/[videoId]/_components/tabs/Activity/Comments.tsx+++ b/apps/web/app/s/[videoId]/_components/tabs/Activity/Comments.tsx@@ -89,14 +89,14 @@ export const Comments = Object.assign(const currentTime = videoElement?.currentTime || 0;const optimisticComment: CommentType = {- id: (`temp-${Date.now()}` as Comment.CommentId),- authorId: (user.id as User.UserId),+ id: `temp-${Date.now()}` as Comment.CommentId,+ authorId: user.id as User.UserId,authorName: user?.name,authorImage: user.imageUrl,content,createdAt: new Date(),videoId: props.videoId,- parentCommentId: ("" as Comment.CommentId),+ parentCommentId: "" as Comment.CommentId,type: "text",timestamp: currentTime,updatedAt: new Date(),@@ -115,7 +115,7 @@ export const Comments = Object.assign(content,videoId: props.videoId,authorImage: user.imageUrl,- parentCommentId: ("" as Comment.CommentId),+ parentCommentId: "" as Comment.CommentId,type: "text",timestamp: currentTime,});@@ -137,7 +137,7 @@ export const Comments = Object.assign(: replyingTo;const optimisticReply: CommentType = {- id: (`temp-reply-${Date.now()}` as Comment.CommentId),+ id: `temp-reply-${Date.now()}` as Comment.CommentId,authorId: user.id,authorName: user.name,authorImage: user.imageUrl,