mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
fix(settings): more work on server settings pages
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user