Update react-overlapping-panels.

Fix: bottom navigation appearing in wrong place.
Fix: Redirect to server from invite if already joined.
Fix: Use monoscape font for code textareas.
This commit is contained in:
Paul
2021-07-07 13:08:39 +01:00
parent 197ba53c60
commit ce67c5acdb
4 changed files with 18 additions and 14 deletions

View File

@@ -48,7 +48,7 @@ export default styled.textarea<TextAreaProps>`
${(props) =>
props.code
? css`
font-family: var(--monoscape-font-font), monospace;
font-family: var(--monoscape-font), monospace;
`
: css`
font-family: inherit;

View File

@@ -105,11 +105,15 @@ export default function Invite() {
try {
setProcessing(true);
if (invite.type === "Server") {
if (client.servers.get(invite.server_id)) {
history.push(`/server/${invite.server_id}/channel/${invite.channel_id}`);
}
}
let result = await client.joinInvite(code);
if (result.type === "Server") {
history.push(
`/server/${result.server._id}/channel/${result.channel._id}`,
);
history.push(`/server/${result.server._id}/channel/${result.channel._id}`);
}
} catch (err) {
setError(takeError(err));