diff --git a/src/App.css b/src/App.css index 3114430..cc2c757 100644 --- a/src/App.css +++ b/src/App.css @@ -11,3 +11,25 @@ canvas { width: 100vw; height: 100vh; } + +@keyframes spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} + +.spinner { + border-radius: 50%; + animation-name: spin; + animation-iteration-count: infinite; + animation-timing-function: linear; + margin: 0px 8px; + width: 18px; + height: 18px; + border: 3px solid white; + border-top-color: transparent; + animation-duration: 1s; +} diff --git a/src/App.jsx b/src/App.jsx index 55c76b9..8d0d316 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -20,7 +20,7 @@ const Lobby = ({ roomId }) => { }, [enterRoom, leaveRoom, roomId]); if (status !== CONNECTED) { - return ; + return ; } return ; diff --git a/src/components/3D/Scene.jsx b/src/components/3D/Scene.jsx index 5c37dd9..44ccd8a 100644 --- a/src/components/3D/Scene.jsx +++ b/src/components/3D/Scene.jsx @@ -49,16 +49,6 @@ export const Scene = () => { // useAnchorShorcuts(anchorX, anchorZ, set); - // const setSelection = useStore(state => state.setSelectedBricks) - - // function undoAddedBrick() { - // setSelection({}); // this should unselect the bricks but Doesn't work for now because of undo is button within leva - // setBricks((prevBricks) => { - // prevBricks.pop(); - // return [...prevBricks]; - // }); - // } - const addBrick = (e) => { e.stopPropagation(); diff --git a/src/components/UI/Loader/index.jsx b/src/components/UI/Loader/index.jsx index 1c4eb3e..f14acd8 100644 --- a/src/components/UI/Loader/index.jsx +++ b/src/components/UI/Loader/index.jsx @@ -1,4 +1,7 @@ -export const Loader = () => { +/* eslint-disable no-unused-vars */ +/* eslint-disable react/prop-types */ + +export const Loader = ({ status }) => { return (
{ alignItems: "center", }} > - Loading... + Loading +
); }; diff --git a/src/components/UI/PeopleList/style.css b/src/components/UI/PeopleList/style.css index 0689a0a..82a758e 100644 --- a/src/components/UI/PeopleList/style.css +++ b/src/components/UI/PeopleList/style.css @@ -101,6 +101,7 @@ .PopoverContent { background-color: white; border-radius: 4px; + margin-bottom: 4px; } .NoOfOthers {