Skip to content

Commit 75862f6

Browse files
committed
chore: apply lint fixes
1 parent 523b6f7 commit 75862f6

6 files changed

Lines changed: 34 additions & 33 deletions

File tree

packages/react/src/views/AttachmentHandler/AudioAttachment.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ const AudioAttachment = ({
3737
padding: 0.5rem;
3838
`,
3939
(type ? variantStyles.pinnedContainer : '') ||
40-
css`
40+
css`
4141
${type === 'file'
42-
? `border-inline-start: 2px solid ${theme.colors.border};
42+
? `border-inline-start: 2px solid ${theme.colors.border};
4343
background: ${theme.colors.primaryForeground};`
44-
: ''}
44+
: ''}
4545
`,
4646
]}
4747
>
@@ -105,11 +105,11 @@ const AudioAttachment = ({
105105
(nestedAttachment.type
106106
? variantStyles.pinnedContainer
107107
: variantStyles.quoteContainer) ||
108-
css`
108+
css`
109109
${nestedAttachment.type === 'file'
110-
? `border-inline-start: 2px solid ${theme.colors.border};
110+
? `border-inline-start: 2px solid ${theme.colors.border};
111111
background: ${theme.colors.primaryForeground};`
112-
: ''}
112+
: ''}
113113
`,
114114
]}
115115
>

packages/react/src/views/AttachmentHandler/ImageAttachment.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ const ImageAttachment = ({
4646
padding: 0.5rem;
4747
`,
4848
(type ? variantStyles.pinnedContainer : '') ||
49-
css`
49+
css`
5050
${type === 'file'
51-
? `border-inline-start: 2px solid ${theme.colors.border};
51+
? `border-inline-start: 2px solid ${theme.colors.border};
5252
background: ${theme.colors.primaryForeground};`
53-
: ''}
53+
: ''}
5454
`,
5555
]}
5656
>
@@ -122,11 +122,11 @@ const ImageAttachment = ({
122122
(nestedAttachment.attachments[0].type
123123
? variantStyles.pinnedContainer
124124
: variantStyles.quoteContainer) ||
125-
css`
125+
css`
126126
${nestedAttachment.attachments[0].type === 'file'
127-
? `border-inline-start: 2px solid ${theme.colors.border};
127+
? `border-inline-start: 2px solid ${theme.colors.border};
128128
background: ${theme.colors.primaryForeground};`
129-
: ''}
129+
: ''}
130130
`,
131131
]}
132132
>

packages/react/src/views/AttachmentHandler/TextAttachment.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ const FileAttachment = ({
6161
border-inline-start: 2px solid ${theme.colors.border};
6262
`,
6363
(type ? variantStyles.pinnedContainer : '') ||
64-
css`
64+
css`
6565
${type === 'file'
66-
? `border-inline-start: 3px solid ${theme.colors.border};`
67-
: ''}
66+
? `border-inline-start: 3px solid ${theme.colors.border};`
67+
: ''}
6868
`,
6969
]}
7070
>
@@ -106,14 +106,14 @@ const FileAttachment = ({
106106
padding: 0.5rem;
107107
`,
108108
(nestedAttachment?.type ? variantStyles.pinnedContainer : '') ||
109-
css`
109+
css`
110110
${!attachment?.type
111-
? `border-inline-start: 2px solid ${theme.colors.border};`
112-
: ''}
111+
? `border-inline-start: 2px solid ${theme.colors.border};`
112+
: ''}
113113
`,
114114
css`
115115
${variantStyles.name !== undefined &&
116-
variantStyles.name.includes('bubble')
116+
variantStyles.name.includes('bubble')
117117
? `border-bottom-left-radius: 0.75rem; border-bottom-right-radius: 0.75rem`
118118
: ''}
119119
`,

packages/react/src/views/AttachmentHandler/VideoAttachment.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ const VideoAttachment = ({
5050
}
5151
`,
5252
(type ? variantStyles.pinnedContainer : '') ||
53-
css`
53+
css`
5454
${type === 'file'
55-
? `border-inline-start: 2px solid ${theme.colors.border};
55+
? `border-inline-start: 2px solid ${theme.colors.border};
5656
background: ${theme.colors.primaryForeground};`
57-
: ''}
57+
: ''}
5858
`,
5959
]}
6060
>
@@ -140,11 +140,11 @@ const VideoAttachment = ({
140140
(nestedAttachment.type
141141
? variantStyles.pinnedContainer
142142
: variantStyles.quoteContainer) ||
143-
css`
143+
css`
144144
${type === 'file'
145-
? `border-inline-start: 2px solid ${theme.colors.border};
145+
? `border-inline-start: 2px solid ${theme.colors.border};
146146
background: ${theme.colors.primaryForeground};`
147-
: ''}
147+
: ''}
148148
`,
149149
]}
150150
>

packages/react/src/views/Message/Message.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ const Message = ({
9292
const hoverStyle = hasType
9393
? {}
9494
: {
95-
'&:hover': {
96-
backgroundColor:
97-
mode === 'light'
98-
? darken(theme.theme.colors.background, 0.03)
99-
: lighten(theme.theme.colors.background, 1),
100-
},
101-
};
95+
'&:hover': {
96+
backgroundColor:
97+
mode === 'light'
98+
? darken(theme.theme.colors.background, 0.03)
99+
: lighten(theme.theme.colors.background, 1),
100+
},
101+
};
102102

103103
const bubbleStyles = useBubbleStyles(isMe);
104104
const pinRoles = new Set(pinPermissions);

packages/react/src/views/QuoteMessage/QuoteMessage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ const QuoteMessage = ({ className = '', style = {}, message }) => {
113113
{message.msg ? (
114114
<Markdown body={message} md={message.md} isReaction={false} />
115115
) : (
116-
`${message.file?.name} (${message.file?.size ? (message.file.size / 1024).toFixed(2) : 0
116+
`${message.file?.name} (${
117+
message.file?.size ? (message.file.size / 1024).toFixed(2) : 0
117118
} kB)`
118119
)}
119120
</Box>

0 commit comments

Comments
 (0)