Skip to content

Commit e696d9f

Browse files
committed
eslint
1 parent 529320d commit e696d9f

3 files changed

Lines changed: 29 additions & 26 deletions

File tree

components/home/AddChannelModal.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,17 @@ export default function AddChannelModal({
7373
if (error) {
7474
if ((error as PostgrestError).message) {
7575
setServerError((error as PostgrestError).message);
76-
} else {
76+
}
77+
else {
7778
setServerError(error as string);
7879
}
7980

8081
setTimeout(() => {
8182
setServerError('');
8283
}, 7000);
8384
return;
84-
} else {
85+
}
86+
else {
8587
addChannelRef.current?.close();
8688
setChannelType('text');
8789
setSetShowDesc(false);

components/home/Server.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ export default function Server({
9797
if (channel.is_media) {
9898
// Entrypoint for media channel
9999
return;
100-
} else {
100+
}
101+
else {
101102
joinTextChannel(e, channel);
102103
}
103104
}}

components/home/ServerList.tsx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -123,31 +123,31 @@ export default function ServerList() {
123123
{userServerPerms & ServerPermissions.MANAGE_MESSAGES ||
124124
userServerPerms & ServerPermissions.OWNER ||
125125
userServerPerms & ServerPermissions.ADMINISTRATOR ? (
126-
<Tooltip
127-
className="z-20 !opacity-100 font-semibold "
128-
style={{
129-
backgroundColor: '#21282b',
130-
borderRadius: '0.5rem',
131-
fontSize: '1.125rem',
132-
lineHeight: '1.75rem',
133-
}}
134-
id="serverSettings"
135-
clickable
136-
openOnClick={true}
137-
>
138-
<div
139-
className="flex justify-center items-center hover:text-grey-300 cursor-pointer"
140-
onClick={() => {
141-
setShowAddChannelModal(true);
126+
<Tooltip
127+
className="z-20 !opacity-100 font-semibold "
128+
style={{
129+
backgroundColor: '#21282b',
130+
borderRadius: '0.5rem',
131+
fontSize: '1.125rem',
132+
lineHeight: '1.75rem',
142133
}}
134+
id="serverSettings"
135+
clickable
136+
openOnClick={true}
143137
>
144-
<PlusIcon width={5} height={5} />
145-
<span className="ml-1">New channel</span>
146-
</div>
147-
</Tooltip>
148-
) : (
149-
''
150-
)}
138+
<div
139+
className="flex justify-center items-center hover:text-grey-300 cursor-pointer"
140+
onClick={() => {
141+
setShowAddChannelModal(true);
142+
}}
143+
>
144+
<PlusIcon width={5} height={5} />
145+
<span className="ml-1">New channel</span>
146+
</div>
147+
</Tooltip>
148+
) : (
149+
''
150+
)}
151151
</div>
152152
);
153153
}

0 commit comments

Comments
 (0)