diff --git a/src/App.css b/src/App.css deleted file mode 100644 index 3c6824e..0000000 --- a/src/App.css +++ /dev/null @@ -1 +0,0 @@ -/* unused – kept so Vite doesn't error if it's ever imported */ diff --git a/src/assets/hero.png b/src/assets/hero.png deleted file mode 100644 index cc51a3d..0000000 Binary files a/src/assets/hero.png and /dev/null differ diff --git a/src/assets/react.svg b/src/assets/react.svg deleted file mode 100644 index 6c87de9..0000000 --- a/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/vite.svg b/src/assets/vite.svg deleted file mode 100644 index 5101b67..0000000 --- a/src/assets/vite.svg +++ /dev/null @@ -1 +0,0 @@ -Vite diff --git a/src/components/CardRow/CardRow.jsx b/src/components/CardRow/CardRow.jsx index 8845b7f..b756a87 100644 --- a/src/components/CardRow/CardRow.jsx +++ b/src/components/CardRow/CardRow.jsx @@ -1,5 +1,5 @@ import React, { useContext } from 'react'; -import { CardContext } from '../../store/CardContext'; +import { CardContext } from '../../context/CardContext'; import PrintingRow from '../PrintingRow/PrintingRow'; const BADGE = { diff --git a/src/components/PrintingRow/PrintingRow.jsx b/src/components/PrintingRow/PrintingRow.jsx index 1990540..06a0fbb 100644 --- a/src/components/PrintingRow/PrintingRow.jsx +++ b/src/components/PrintingRow/PrintingRow.jsx @@ -1,5 +1,5 @@ import React, { useContext, useState } from 'react'; -import { CardContext } from '../../store/CardContext'; +import { CardContext } from '../../context/CardContext'; import { updateCardAmount } from '../../services/api'; function PrintingRow({ card_id, printing, cols, zebra }) { diff --git a/src/store/CardContext.jsx b/src/context/CardContext.jsx similarity index 100% rename from src/store/CardContext.jsx rename to src/context/CardContext.jsx diff --git a/src/main.jsx b/src/main.jsx index 214265f..079c75d 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -2,7 +2,7 @@ import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import './index.css' import App from './App.jsx' -import { CardProvider } from './store/CardContext' // <-- import your context provider +import { CardProvider } from './context/CardContext' createRoot(document.getElementById('root')).render( diff --git a/src/pages/HomePage.jsx b/src/pages/HomePage.jsx index 2cde9aa..9758606 100644 --- a/src/pages/HomePage.jsx +++ b/src/pages/HomePage.jsx @@ -1,6 +1,6 @@ import React, { useEffect, useState, useContext, useMemo, useCallback } from 'react'; import { Virtuoso } from 'react-virtuoso'; -import { CardContext } from '../store/CardContext'; +import { CardContext } from '../context/CardContext'; import { fetchCards, fetchCardImage } from '../services/api'; import { useDebounce } from '../hooks/useDebounce'; import CardRow from '../components/CardRow/CardRow'; diff --git a/src/services/api.jsx b/src/services/api.js similarity index 100% rename from src/services/api.jsx rename to src/services/api.js