mirror of
https://github.com/ragestudio/comty.git
synced 2025-07-01 21:34:15 +00:00
20 lines
348 B
JavaScript
20 lines
348 B
JavaScript
import React from "react"
|
|
|
|
export default (to) => {
|
|
React.useEffect(() => {
|
|
if (typeof to !== "undefined") {
|
|
app.layout.toggleTotalWindowHeight(to)
|
|
|
|
return () => {
|
|
app.layout.toggleTotalWindowHeight(!!to)
|
|
}
|
|
}
|
|
|
|
app.layout.toggleTotalWindowHeight(true)
|
|
|
|
return () => {
|
|
app.layout.toggleTotalWindowHeight(false)
|
|
}
|
|
}, [])
|
|
}
|