fix: upgrade sussces auto hide
parent
02c5989612
commit
8993a91f12
@ -1,20 +0,0 @@
|
|||||||
'use client'
|
|
||||||
import { useBoolean } from 'ahooks'
|
|
||||||
import UpdatePlugin from '@/app/components/plugins/update-plugin'
|
|
||||||
|
|
||||||
const Page = () => {
|
|
||||||
const [isShowUpdateModal, {
|
|
||||||
setTrue: showUpdateModal,
|
|
||||||
setFalse: hideUpdateModal,
|
|
||||||
}] = useBoolean(false)
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<div onClick={showUpdateModal}>Show Upgrade</div>
|
|
||||||
{isShowUpdateModal && (
|
|
||||||
<UpdatePlugin onHide={hideUpdateModal} />
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Page
|
|
||||||
Loading…
Reference in New Issue