feat: custom app icon (#7196)

Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
Hash Brown 2024-08-19 09:16:33 +08:00 • committed by GitHub
commit fbf31b5d52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
65 changed files with 1068 additions and 352 deletions

View file

@ -118,6 +118,7 @@ const Apps = ({
const [isShowCreateModal, setIsShowCreateModal] = React.useState(false)
const onCreate: CreateAppModalProps['onConfirm'] = async ({
name,
icon_type,
icon,
icon_background,
description,
@ -129,6 +130,7 @@ const Apps = ({
const app = await importApp({
data: export_data,
name,
icon_type,
icon,
icon_background,
description,
@ -215,8 +217,10 @@ const Apps = ({
</div>
{isShowCreateModal && (
<CreateAppModal
appIconType={currApp?.app.icon_type || 'emoji'}
appIcon={currApp?.app.icon || ''}
appIconBackground={currApp?.app.icon_background || ''}
appIconUrl={currApp?.app.icon_url}
appName={currApp?.app.name || ''}
appDescription={currApp?.app.description || ''}
show={isShowCreateModal}