aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/helpers')
-rw-r--r--vnext/src/ui/helpers/BubbleStyle.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/vnext/src/ui/helpers/BubbleStyle.js b/vnext/src/ui/helpers/BubbleStyle.js
index f44f726e..f8b0f4eb 100644
--- a/vnext/src/ui/helpers/BubbleStyle.js
+++ b/vnext/src/ui/helpers/BubbleStyle.js
@@ -1,3 +1,8 @@
+/**
+ * @param {import('../../api').User} me
+ * @param {import('../../api').Message} msg
+ * @returns {React.CSSProperties}
+ */
export function bubbleStyle(me, msg) {
const isMe = me.uid === msg.user.uid;
const color = isMe ? '#fff' : '#222';
@@ -10,6 +15,11 @@ export function bubbleStyle(me, msg) {
};
}
+/**
+ * @param {import('../../api').User} me
+ * @param {import('../../api').Message} msg
+ * @returns {React.CSSProperties}
+ */
export function chatItemStyle(me, msg) {
const isMe = me.uid === msg.user.uid;
const alignment = isMe ? 'flex-end' : 'flex-start';