mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 07:22:10 -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 } = {};
|
const categoryInfo: { [key: string]: string } = {};
|
||||||
|
|
||||||
let roles: Server["roles"];
|
let roles: Server["roles"] | undefined;
|
||||||
let roleList: string[];
|
let roleList: string[];
|
||||||
if (
|
if (
|
||||||
channel.channel_type === "TextChannel" ||
|
channel.channel_type === "TextChannel" ||
|
||||||
channel.channel_type === "VoiceChannel"
|
channel.channel_type === "VoiceChannel"
|
||||||
) {
|
) {
|
||||||
roles = channel.server!.roles;
|
roles = channel.server?.roles;
|
||||||
if (roles) {
|
if (roles) {
|
||||||
const list = Object.keys(roles)
|
const list = Object.keys(roles)
|
||||||
.map((id) => {
|
.map((id) => {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
min-width: 240px;
|
width: 240px;
|
||||||
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -10,6 +10,7 @@ import Button from "../../components/ui/Button";
|
||||||
import ComboBox from "../../components/ui/ComboBox";
|
import ComboBox from "../../components/ui/ComboBox";
|
||||||
import Overline from "../../components/ui/Overline";
|
import Overline from "../../components/ui/Overline";
|
||||||
import Preloader from "../../components/ui/Preloader";
|
import Preloader from "../../components/ui/Preloader";
|
||||||
|
import Tip from "../../components/ui/Tip";
|
||||||
|
|
||||||
export default function InviteBot() {
|
export default function InviteBot() {
|
||||||
const { id } = useParams<{ id: string }>();
|
const { id } = useParams<{ id: string }>();
|
||||||
|
@ -27,6 +28,9 @@ export default function InviteBot() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: "6em" }}>
|
<div style={{ padding: "6em" }}>
|
||||||
|
<Tip warning hideSeparator>
|
||||||
|
This section is under construction.
|
||||||
|
</Tip>
|
||||||
{typeof data === "undefined" && <Preloader type="spinner" />}
|
{typeof data === "undefined" && <Preloader type="spinner" />}
|
||||||
{data && (
|
{data && (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in a new issue