diff --git a/app/pages/PageCube/PageCube.tsx b/app/pages/PageCube/PageCube.tsx index fc0a60153d..0ff62d3fb6 100644 --- a/app/pages/PageCube/PageCube.tsx +++ b/app/pages/PageCube/PageCube.tsx @@ -15,7 +15,7 @@ import { Button } from '~/components/Button'; import { ButtonLink } from '~/components/ButtonLink'; import { TopBarInnerContext } from "~/contexts/TopBarInner"; -import { SidePanel } from '../PageEnigma/comp/SidePanel'; +import { SidePanel } from '~/templates/SidePanel'; import { SceneWithCube } from './SceneWithCube'; @@ -42,7 +42,10 @@ export const PageCube = () => { const listeningXYRotation = useCallback(( {x,y}:{x:number;y:number} )=>{ - setRotations({x:x, y:y}) + setRotations({ + x:Math.round(x*100)/100, + y:Math.round(y*100)/100, + }) },[]); useEffect(() => { //componentDidMount @@ -78,12 +81,12 @@ export const PageCube = () => { return (
{rotationX ? rotationX : ""}
-{rotationY ? rotationY : ""}
+Ration X: {rotationX ? rotationX : ""}
+Ration Y: {rotationY ? rotationY : ""}
Side Panel Text
diff --git a/app/pages/PageEnigma/PageEnigma.tsx b/app/pages/PageEnigma/PageEnigma.tsx index fda7672046..e939461d13 100644 --- a/app/pages/PageEnigma/PageEnigma.tsx +++ b/app/pages/PageEnigma/PageEnigma.tsx @@ -16,7 +16,7 @@ import { import { Button } from '~/components/Button'; import { ButtonLink } from '~/components/ButtonLink'; import { TopBarInnerContext } from "~/contexts/TopBarInner"; -import { SidePanel } from './comp/SidePanel'; +import { SidePanel } from '~/templates/SidePanel'; import Editor from './js/editor'; diff --git a/app/root.tsx b/app/root.tsx index f13544a5e4..04637c4c01 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -11,7 +11,7 @@ import { import tailwindCss from "./styles/tailwind.css?url"; import normalizeCss from "./styles/normalize.css?url"; -import { TopBar } from "./template/TopBar"; +import { TopBar } from "./templates/TopBar"; import { TopBarInnerContext } from '~/contexts/TopBarInner'; @@ -40,7 +40,7 @@ export default function App() { setTopBarInner: setTopBarInnerComponent }}> - +