chore: update logo format to png (#830)

This commit is contained in:
boojack
2022-12-23 00:21:53 +08:00
committed by GitHub
parent 7efa749c66
commit 9f25badde3
18 changed files with 22 additions and 22 deletions

View File

@ -32,11 +32,11 @@ const UpdateCustomizedProfileDialog: React.FC<Props> = ({ destroy }: Props) => {
});
};
const handleIconUrlChanged = (e: React.ChangeEvent<HTMLInputElement>) => {
const handleLogoUrlChanged = (e: React.ChangeEvent<HTMLInputElement>) => {
setState((state) => {
return {
...state,
iconUrl: e.target.value as string,
logoUrl: e.target.value as string,
};
});
};
@ -69,7 +69,7 @@ const UpdateCustomizedProfileDialog: React.FC<Props> = ({ destroy }: Props) => {
};
const handleSaveBtnClick = async () => {
if (state.name === "" || state.iconUrl === "") {
if (state.name === "" || state.logoUrl === "") {
toastHelper.error(t("message.fill-all"));
return;
}
@ -103,7 +103,7 @@ const UpdateCustomizedProfileDialog: React.FC<Props> = ({ destroy }: Props) => {
</p>
<input type="text" className="input-text" value={state.name} onChange={handleNameChanged} />
<p className="text-sm mb-1 mt-2">{t("setting.system-section.customize-server.icon-url")}</p>
<input type="text" className="input-text" value={state.iconUrl} onChange={handleIconUrlChanged} />
<input type="text" className="input-text" value={state.logoUrl} onChange={handleLogoUrlChanged} />
<p className="text-sm mb-1 mt-2">Description</p>
<input type="text" className="input-text" value={state.description} onChange={handleDescriptionChanged} />
<p className="text-sm mb-1 mt-2">Server locale</p>