feat: enhance tickets portal and admin flows

This commit is contained in:
Esdras Renan 2025-10-07 02:26:09 -03:00
parent 9cdd8763b4
commit c15f0a5b09
67 changed files with 1101 additions and 338 deletions

View file

@ -103,7 +103,16 @@ export function EnergyRing({
useFrame((state) => {
if (mesh.current) {
mesh.current.rotation.z = state.clock.elapsedTime
mesh.current.material.opacity = 0.5 + Math.sin(state.clock.elapsedTime * 3) * 0.3
const material = mesh.current.material
if (Array.isArray(material)) {
material.forEach((mat) => {
if ("opacity" in mat) {
mat.opacity = 0.5 + Math.sin(state.clock.elapsedTime * 3) * 0.3
}
})
} else if (material && "opacity" in material) {
material.opacity = 0.5 + Math.sin(state.clock.elapsedTime * 3) * 0.3
}
}
})