mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-18 06:54:15 +00:00
format
This commit is contained in:
parent
fb227a371b
commit
d26454d974
@ -1,25 +1,19 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
const enterPlayerAnimation = () => {
|
const enterPlayerAnimation = () => {
|
||||||
app.cores.style.applyTemporalVariant("dark")
|
app.controls.toggleUIVisibility(false)
|
||||||
app.layout.toggleCompactMode(true)
|
}
|
||||||
app.layout.toggleCenteredContent(false)
|
|
||||||
app.controls.toggleUIVisibility(false)
|
|
||||||
}
|
|
||||||
|
|
||||||
const exitPlayerAnimation = () => {
|
const exitPlayerAnimation = () => {
|
||||||
app.cores.style.applyVariant(app.cores.style.getStoragedVariantKey())
|
app.controls.toggleUIVisibility(true)
|
||||||
app.layout.toggleCompactMode(false)
|
}
|
||||||
app.layout.toggleCenteredContent(true)
|
|
||||||
app.controls.toggleUIVisibility(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
enterPlayerAnimation()
|
enterPlayerAnimation()
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
exitPlayerAnimation()
|
exitPlayerAnimation()
|
||||||
}
|
}
|
||||||
}, [])
|
}, [])
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user