fix(settings): more work on server settings pages

This commit is contained in:
trashtemp
2021-12-24 23:27:35 +01:00
parent 9b4619cbd1
commit 245c7a46ed
5 changed files with 23 additions and 25 deletions

View File

@@ -93,7 +93,7 @@ export const Overview = observer(({ server }: Props) => {
if (!changed) setChanged(true);
}}
/>
<hr />
<h3>
<Text id="app.main.servers.custom_banner" />
</h3>
@@ -107,7 +107,7 @@ export const Overview = observer(({ server }: Props) => {
previewURL={server.generateBannerURL({ width: 1000 }, true)}
remove={() => server.edit({ remove: "Banner" })}
/>
<hr />
<h3>
<Text id="app.settings.server_pages.overview.system_messages" />
</h3>
@@ -152,7 +152,11 @@ export const Overview = observer(({ server }: Props) => {
<Text id="general.disabled" />
</option>
{server.channels
.filter((x) => (typeof x !== "undefined" && x.channel_type === "TextChannel"))
.filter(
(x) =>
typeof x !== "undefined" &&
x.channel_type === "TextChannel",
)
.map((channel) => (
<option key={channel!._id} value={channel!._id}>
{getChannelName(channel!, true)}