diff --git a/bun.lockb b/bun.lockb index b32388c..eb74852 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/index.html b/index.html index e4b78ea..e0d1c84 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - +
diff --git a/package.json b/package.json index 21b8805..9544eae 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,10 @@ }, "dependencies": { "@dnd-kit/core": "^6.3.1", + "@emotion/react": "^11.14.0", + "@emotion/styled": "^11.14.0", + "@mui/icons-material": "^6.3.1", + "@mui/material": "^6.3.1", "react": "^18.3.1", "react-dom": "^18.3.1", "zustand": "^5.0.3" diff --git a/src/App.tsx b/src/App.tsx index 70ae375..b76c696 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,14 +5,9 @@ import './App.scss'; import { TierImage } from './components/Image'; import { Tier } from './components/Tier'; import { TierModal } from './components/TierModal'; +import { tierImage } from './dto/tier'; import useStore from './store'; -interface tierImage { - name: string; - url: string; - category: string; -} - const App = () => { const [images, addTierImage, tierLevels, editTierImage] = useStore( useShallow(state => [state.images, state.addTierImage, state.tierLevels, state.editTierImage]), @@ -24,11 +19,6 @@ const App = () => { if (uploadBtn.current) uploadBtn.current.click(); }; - const getRandomCategoryName = () => { - const categoryNames = tierLevels.flatMap(category => category.name); - return categoryNames[Math.floor(Math.random() * categoryNames.length)]; - }; - const handleAdd = (images: tierImage[]) => { images.forEach(image => { addTierImage(image); @@ -55,7 +45,7 @@ const App = () => { /> ))} -{name}