Skip to content

Commit e7833b4

Browse files
authored
optimize close action on about page (langgenius#24342)
1 parent c64b9c9 commit e7833b4

File tree

1 file changed

+4
-4
lines changed
  • web/app/components/header/account-about

1 file changed

+4
-4
lines changed

web/app/components/header/account-about/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Button from '@/app/components/base/button'
88
import type { LangGeniusVersionResponse } from '@/models/common'
99
import { IS_CE_EDITION } from '@/config'
1010
import DifyLogo from '@/app/components/base/logo/dify-logo'
11-
import { noop } from 'lodash-es'
11+
1212
import { useGlobalPublicStore } from '@/context/global-public-context'
1313

1414
type IAccountSettingProps = {
@@ -27,11 +27,11 @@ export default function AccountAbout({
2727
return (
2828
<Modal
2929
isShow
30-
onClose={noop}
30+
onClose={onCancel}
3131
className='!w-[480px] !max-w-[480px] !px-6 !py-4'
3232
>
33-
<div>
34-
<div className='absolute right-4 top-4 flex h-8 w-8 cursor-pointer items-center justify-center' onClick={onCancel}>
33+
<div className='relative'>
34+
<div className='absolute right-0 top-0 flex h-8 w-8 cursor-pointer items-center justify-center' onClick={onCancel}>
3535
<RiCloseLine className='h-4 w-4 text-text-tertiary' />
3636
</div>
3737
<div className='flex flex-col items-center gap-4 py-8'>

0 commit comments

Comments
 (0)