feat: better loading spinners

This commit is contained in:
TrèsAbhi committed 2024-04-06 12:43:54 -05:00
1 parent 11440bc654
commit f0b905593c
5 files changed
+7 -30

No files matched your search

@@ -202,7 +202,6 @@ export function TankSandbox() {
<SceneProps />
<Suspense fallback={<ModelLoader />}>
{/* TODO: add rotation cube to the top right */}
<Lighting />
<TankModel />
<Armor />
@@ -1,5 +1,4 @@
import { Html, useProgress } from '@react-three/drei';
import { theme } from '../../../../../../../stitches.config';
import { Loader } from '../../../../../components/Loader';
export function ModelLoader() {
@@ -7,11 +6,7 @@ export function ModelLoader() {
return (
<Html center position={[0, 1.5, 0]}>
<Loader
naked
color={theme.colors.textHighContrast_purple}
progress={progress / 100}
/>
<Loader naked progress={progress / 100} />
</Html>
);
}