mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-12 12:04:16 +00:00
use floating stack
This commit is contained in:
parent
bf69422cbd
commit
b2eeac35ab
@ -6,7 +6,17 @@ import { Sidebar, Drawer, Sidedrawer, Modal } from "components/Layout"
|
|||||||
|
|
||||||
import BackgroundDecorator from "components/BackgroundDecorator"
|
import BackgroundDecorator from "components/BackgroundDecorator"
|
||||||
|
|
||||||
|
import { createWithDom as FloatingStack } from "../components/floatingStack"
|
||||||
|
|
||||||
export default (props) => {
|
export default (props) => {
|
||||||
|
React.useEffect(() => {
|
||||||
|
const floatingStack = FloatingStack()
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
floatingStack.remove()
|
||||||
|
}
|
||||||
|
}, [])
|
||||||
|
|
||||||
return <>
|
return <>
|
||||||
<BackgroundDecorator />
|
<BackgroundDecorator />
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user