|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
import { Button, Input } from "@mui/joy";
|
|
|
|
|
import { Button, IconButton, Input } from "@mui/joy";
|
|
|
|
|
import Textarea from "@mui/joy/Textarea/Textarea";
|
|
|
|
|
import { useState } from "react";
|
|
|
|
|
import { toast } from "react-hot-toast";
|
|
|
|
@ -95,9 +95,9 @@ const UpdateCustomizedProfileDialog: React.FC<Props> = ({ destroy }: Props) => {
|
|
|
|
|
<>
|
|
|
|
|
<div className="dialog-header-container">
|
|
|
|
|
<p className="title-text">{t("setting.system-section.customize-server.title")}</p>
|
|
|
|
|
<button className="btn close-btn" onClick={handleCloseButtonClick}>
|
|
|
|
|
<Icon.X />
|
|
|
|
|
</button>
|
|
|
|
|
<IconButton size="sm" onClick={handleCloseButtonClick}>
|
|
|
|
|
<Icon.X className="w-5 h-auto" />
|
|
|
|
|
</IconButton>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="dialog-content-container min-w-[16rem]">
|
|
|
|
|
<p className="text-sm mb-1">
|
|
|
|
@ -108,7 +108,7 @@ const UpdateCustomizedProfileDialog: React.FC<Props> = ({ destroy }: Props) => {
|
|
|
|
|
<p className="text-sm mb-1 mt-2">{t("setting.system-section.customize-server.icon-url")}</p>
|
|
|
|
|
<Input className="w-full" type="text" value={state.logoUrl} onChange={handleLogoUrlChanged} />
|
|
|
|
|
<p className="text-sm mb-1 mt-2">{t("setting.system-section.customize-server.description")}</p>
|
|
|
|
|
<Textarea minRows="2" maxRows="4" className="!input-text" value={state.description} onChange={handleDescriptionChanged} />
|
|
|
|
|
<Textarea className="w-full" minRows="2" maxRows="4" value={state.description} onChange={handleDescriptionChanged} />
|
|
|
|
|
<p className="text-sm mb-1 mt-2">{t("setting.system-section.customize-server.locale")}</p>
|
|
|
|
|
<LocaleSelect className="!w-full" value={state.locale} onChange={handleLocaleSelectChange} />
|
|
|
|
|
<p className="text-sm mb-1 mt-2">{t("setting.system-section.customize-server.appearance")}</p>
|
|
|
|
|