Fix home tab item width on Firefox.

Fix inability to leave server, for #95.
Add warning to invite bot.
This commit is contained in:
Paul 2021-08-17 20:47:44 +01:00
parent 5bfba2d7cf
commit 69cd410aff
3 changed files with 7 additions and 3 deletions

View file

@ -43,13 +43,13 @@ function useEntries(channel: Channel, keys: string[], isServer?: boolean) {
const categoryInfo: { [key: string]: string } = {};
let roles: Server["roles"];
let roles: Server["roles"] | undefined;
let roleList: string[];
if (
channel.channel_type === "TextChannel" ||
channel.channel_type === "VoiceChannel"
) {
roles = channel.server!.roles;
roles = channel.server?.roles;
if (roles) {
const list = Object.keys(roles)
.map((id) => {

View file

@ -13,7 +13,7 @@
.actions {
gap: 8px;
min-width: 240px;
width: 240px;
margin: auto;
display: flex;

View file

@ -10,6 +10,7 @@ import Button from "../../components/ui/Button";
import ComboBox from "../../components/ui/ComboBox";
import Overline from "../../components/ui/Overline";
import Preloader from "../../components/ui/Preloader";
import Tip from "../../components/ui/Tip";
export default function InviteBot() {
const { id } = useParams<{ id: string }>();
@ -27,6 +28,9 @@ export default function InviteBot() {
return (
<div style={{ padding: "6em" }}>
<Tip warning hideSeparator>
This section is under construction.
</Tip>
{typeof data === "undefined" && <Preloader type="spinner" />}
{data && (
<>