Skip to content

Commit e27f593

Browse files
committed
chore: move App.tsx to outside of components folder
1 parent d1f5532 commit e27f593

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

prototype/src/Components/App.tsx renamed to prototype/src/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, { Suspense, useState } from 'react'
22
import { Canvas } from '@react-three/fiber'
33
import { OrbitControls } from '@react-three/drei'
4-
import Model from '../Models/Scene'
5-
import '../App.css'
6-
import ColorPicker from './ColorPicker'
7-
import Larmborghini from '../Models/Lamborghini'
4+
import Model from './Models/Scene'
5+
import './App.css'
6+
import ColorPicker from './Components/ColorPicker'
7+
import Larmborghini from './Models/Lamborghini'
88
import { proxy } from 'valtio'
99
import { Loader, Environment } from "@react-three/drei/web"
1010

prototype/src/Components/ColorPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState } from 'react'
22
import { TwitterPicker } from 'react-color'
3-
import { state } from './App'
3+
import { state } from '../App'
44

55
/**
66
* For switching color of car

prototype/src/Models/Lamborghini.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useRef } from 'react'
77
import { useGLTF } from '@react-three/drei'
88
import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader'
99
import { useSnapshot } from 'valtio'
10-
import { CarProps } from '../Components/App'
10+
import { CarProps } from '../App'
1111

1212
type GLTFResult = GLTF & {
1313
nodes: {

prototype/src/Models/Scene.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useRef } from 'react'
77
import { useGLTF } from '@react-three/drei'
88
import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader'
99
import { useSnapshot } from 'valtio'
10-
import { CarProps } from '../Components/App'
10+
import { CarProps } from '../App'
1111

1212
type GLTFResult = GLTF & {
1313
nodes: {

prototype/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ReactDOM from 'react-dom'
22
import './styles.css'
3-
import { App } from './Components/App'
3+
import { App } from './App'
44

55
ReactDOM.render(<App></App>, document.getElementById('root'))

0 commit comments

Comments
 (0)