mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
Fix home tab item width on Firefox.
Fix inability to leave server, for #95. Add warning to invite bot.
This commit is contained in:
parent
5bfba2d7cf
commit
69cd410aff
3 changed files with 7 additions and 3 deletions
|
@ -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) => {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
.actions {
|
||||
gap: 8px;
|
||||
min-width: 240px;
|
||||
width: 240px;
|
||||
|
||||
margin: auto;
|
||||
display: flex;
|
||||
|
|
|
@ -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 && (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue