Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { Container } from 'react-bootstrap';
import Header from './components/Header';
import Footer from './components/Footer';
import HomeScreen from './screens/HomeScreen';
import ProductScreen from './screens/ProductScreen';
import CartScreen from './screens/CartScreen';
import Header from './components/Header.jsx';
import Footer from './components/Footer.jsx';
import HomeScreen from './screens/HomeScreen.jsx';
import ProductScreen from './screens/ProductScreen.jsx';
import CartScreen from './screens/CartScreen.jsx';

const App = () => {
return (
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Provider } from 'react-redux';
import store from "./redux/store.js"
import './index.css';
import './bootstrap.min.css'
import App from './App';
import reportWebVitals from './reportWebVitals';
import App from './App.js';
import reportWebVitals from './reportWebVitals.js';

ReactDOM.render(
<Provider store={store}>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/redux/actions/productActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
PRODUCT_DETAILS_REQUEST,
PRODUCT_DETAILS_SUCCESS,
PRODUCT_DETAILS_FAIL
} from '../../constants/productConstants';
} from '../../constants/productConstants.js';

export const listProducts = () => async (dispatch) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/redux/reducer/productReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
PRODUCT_DETAILS_FAIL,
PRODUCT_DETAILS_REQUEST,
PRODUCT_DETAILS_SUCCESS,
} from '../../constants/productConstants';
} from '../../constants/productConstants.js';

export const productListReducer = (state = { products: [] }, action) => {
switch (action.type) {
Expand Down