-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Several style adjustments - Added loading for category fetch - Changed site paths to hash to avoid issues with GitHub Pages - Fixed Minicart appearing for a millisecond on page load - Added redux-persist back with redux-toolkit - Fixed product removal from chheckout - Fixed Login/Logout nav link swap on site load - Checkout scroll position when opening should now reset to top
- Loading branch information
Felipe Spengler
committed
Mar 28, 2024
1 parent
9ecc405
commit 1447542
Showing
18 changed files
with
192 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom/client' | ||
import { BrowserRouter } from "react-router-dom"; | ||
import { HashRouter } from "react-router-dom"; | ||
import { Provider } from 'react-redux'; | ||
import { PersistGate } from 'redux-persist/integration/react'; | ||
|
||
import { store, persistor } from './store/store.js'; | ||
|
||
import { store } from './store/store.js'; | ||
import App from './App.jsx' | ||
|
||
import './index.scss' | ||
|
||
|
||
ReactDOM.createRoot(document.getElementById('root')).render( | ||
<React.StrictMode> | ||
<Provider store={store}> | ||
<BrowserRouter basename='/clothing-store'> | ||
<PersistGate loading={null} persistor={persistor}> | ||
<HashRouter basename='/'> | ||
<App /> | ||
</BrowserRouter> | ||
</HashRouter> | ||
</PersistGate> | ||
</Provider> | ||
</React.StrictMode>, | ||
) |
46 changes: 26 additions & 20 deletions
46
src/routes/category-list-page/category-list-page.component.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.