diff --git a/external/lang b/external/lang index 2f0326b8..cfe757a8 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit 2f0326b892174985809ec1b82a0f3a658df0f792 +Subproject commit cfe757a806f038ce68b50d907c43f9f1742756a6 diff --git a/src/pages/settings/ChannelSettings.tsx b/src/pages/settings/ChannelSettings.tsx index abc5baf1..f25a557f 100644 --- a/src/pages/settings/ChannelSettings.tsx +++ b/src/pages/settings/ChannelSettings.tsx @@ -49,12 +49,7 @@ export default function ChannelSettings() { - ), + category:
{getChannelName(channel, true)}
, id: "overview", icon: , title: ( diff --git a/src/pages/settings/ServerSettings.tsx b/src/pages/settings/ServerSettings.tsx index ff4be4e1..61a34448 100644 --- a/src/pages/settings/ServerSettings.tsx +++ b/src/pages/settings/ServerSettings.tsx @@ -72,7 +72,9 @@ export default observer(() => { hideTitle: true, }, { - category: "User Management", + category: ( + + ), id: "members", icon: , title: ( diff --git a/src/pages/settings/channel/Overview.tsx b/src/pages/settings/channel/Overview.tsx index 09143f55..254eade6 100644 --- a/src/pages/settings/channel/Overview.tsx +++ b/src/pages/settings/channel/Overview.tsx @@ -10,8 +10,8 @@ import TextAreaAutoSize from "../../../lib/TextAreaAutoSize"; import { FileUploader } from "../../../context/revoltjs/FileUploads"; import Button from "../../../components/ui/Button"; -import InputBox from "../../../components/ui/InputBox"; import Checkbox from "../../../components/ui/Checkbox"; +import InputBox from "../../../components/ui/InputBox"; interface Props { channel: Channel; @@ -40,10 +40,7 @@ export default observer(({ channel }: Props) => { () => setDescription(channel.description ?? ""), [channel.description], ); - useEffect( - () => setNSFW(channel.nsfw ?? false), - [channel.nsfw], - ); + useEffect(() => setNSFW(channel.nsfw ?? false), [channel.nsfw]); const [changed, setChanged] = useState(false); function save() { @@ -51,8 +48,7 @@ export default observer(({ channel }: Props) => { if (name !== channel.name) changes.name = name; if (description !== channel.description) changes.description = description; - if (nsfw !== channel.nsfw) - changes.nsfw = nsfw; + if (nsfw !== channel.nsfw) changes.nsfw = nsfw; channel.edit(changes); setChanged(false); @@ -118,15 +114,16 @@ export default observer(({ channel }: Props) => { if (!changed) setChanged(true); }} /> - {channel.channel_type === "VoiceChannel" ? '' : ( +
+ {channel.channel_type === "VoiceChannel" ? ( + "" + ) : ( { - setNSFW(nsfwchange); - if (!changed) setChanged(true); - } - } + onChange={(nsfwchange) => { + setNSFW(nsfwchange); + if (!changed) setChanged(true); + }} description="Set this channel to NSFW."> NSFW diff --git a/src/pages/settings/server/Overview.tsx b/src/pages/settings/server/Overview.tsx index c4b962a2..9086e5fb 100644 --- a/src/pages/settings/server/Overview.tsx +++ b/src/pages/settings/server/Overview.tsx @@ -93,7 +93,7 @@ export const Overview = observer(({ server }: Props) => { if (!changed) setChanged(true); }} /> - +

@@ -107,7 +107,7 @@ export const Overview = observer(({ server }: Props) => { previewURL={server.generateBannerURL({ width: 1000 }, true)} remove={() => server.edit({ remove: "Banner" })} /> - +

@@ -152,7 +152,11 @@ export const Overview = observer(({ server }: Props) => { {server.channels - .filter((x) => (typeof x !== "undefined" && x.channel_type === "TextChannel")) + .filter( + (x) => + typeof x !== "undefined" && + x.channel_type === "TextChannel", + ) .map((channel) => (