Skip to content

Commit

Permalink
Enable ESLint for the shipping page
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel81 committed Jan 24, 2024
1 parent b6ab8f0 commit 1b27520
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
12 changes: 5 additions & 7 deletions frontend/src/Pages/PlaceorderPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import Message from '../Components/Message'
import CheckoutSteps from '../Components/CheckoutSteps'
import { createOrder } from '../redux/actions/orderActions'
import { orderCreateReset } from '../redux/slices/orderSlices/orderCreateSlice'
// import { createOrder } from '../actions/orderActions'
// import { ORDER_CREATE_RESET } from '../constants/orderConstants'
/*eslint-disable*/
// /*eslint-disable*/
const PlaceorderPage = () => {
const dispatch = useDispatch()
const navigate = useNavigate()
Expand Down Expand Up @@ -54,13 +52,13 @@ const PlaceorderPage = () => {

return (
<div className='mx-auto px-16'>
<CheckoutSteps step1 step2 step3 step4 />
<div className="flex flex-wrap my-10">
<CheckoutSteps step1 step2 step3 step4 />
<div className="flex flex-wrap my-10">
<div className="w-full sm:w-8/12 mb-8 sm:mb-0 pr-4">
<div className="py-5">
<div className="py-5">
<h2 className="text-2xl font-bold">SHIPPING</h2>
<p className="mt-2">
<strong>Shipping: </strong>
<strong>Shipping: </strong>
{cart.shippingAddress.address}, {cart.shippingAddress.city} {cart.shippingAddress.postalCode}, {cart.shippingAddress.country}
</p>
</div>
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Pages/ShippingPage.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// /*eslint-disable*/
import { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { useNavigate } from 'react-router-dom';
Expand Down

0 comments on commit 1b27520

Please sign in to comment.