fix: optimize feedback and app icon (#1099)
This commit is contained in:
@@ -119,9 +119,11 @@ function AppCard({
|
||||
}
|
||||
|
||||
const onGenCode = async () => {
|
||||
setGenLoading(true)
|
||||
await asyncRunSafe(onGenerateCode?.() as any)
|
||||
setGenLoading(false)
|
||||
if (onGenerateCode) {
|
||||
setGenLoading(true)
|
||||
await asyncRunSafe(onGenerateCode())
|
||||
setGenLoading(false)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -46,7 +46,8 @@ const SettingsModal: FC<ISettingsModalProps> = ({
|
||||
onSave,
|
||||
}) => {
|
||||
const [isShowMore, setIsShowMore] = useState(false)
|
||||
const { title, description, copyright, privacy_policy, default_language, icon, icon_background } = appInfo.site
|
||||
const { icon, icon_background } = appInfo
|
||||
const { title, description, copyright, privacy_policy, default_language } = appInfo.site
|
||||
const [inputInfo, setInputInfo] = useState({ title, desc: description, copyright, privacyPolicy: privacy_policy })
|
||||
const [language, setLanguage] = useState(default_language)
|
||||
const [saveLoading, setSaveLoading] = useState(false)
|
||||
|
||||
Reference in New Issue
Block a user