Skip to content

Commit

Permalink
fix: 🐛 enahnce the code
Browse files Browse the repository at this point in the history
  • Loading branch information
NirmalNaveen20 committed Jul 6, 2023
1 parent 0bd5983 commit 80e7dd3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:18

WORKDIR /app

COPY package.json .

RUN npm install -g [email protected]

COPY . .

EXPOSE 3000

CMD [ "npm", "start" ]
2 changes: 0 additions & 2 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
ProductsPage,
BestSellingPage,
EventsPage,
FAQPage,
CheckoutPage,
PaymentPage,
OrderSuccessPage,
Expand Down Expand Up @@ -108,7 +107,6 @@ const App = () => {
<Route path="/product/:id" element={<ProductDetailsPage />} />
<Route path="/best-selling" element={<BestSellingPage />} />
<Route path="/events" element={<EventsPage />} />
<Route path="/faq" element={<FAQPage />} />
<Route
path="/checkout"
element={
Expand Down
5 changes: 0 additions & 5 deletions frontend/src/components/Layout/AdminHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ const AdminHeader = () => {
<FiPackage color="#555" size={30} className="mx-5 cursor-pointer" />
</Link>
<Link to="/dashboard-messages" className="800px:block hidden">
<BiMessageSquareDetail
color="#555"
size={30}
className="mx-5 cursor-pointer"
/>
</Link>
<img
src={`${backend_url}${user?.avatar}`}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/cart/Cart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ const Cart = ({ setOpenCart }) => {
onClick={() => setOpenCart(false)}
/>
</div>
{/* Item length */}
{/* length */}
<div className={`${styles.noramlFlex} p-4`}>
<BsJournalBookmark size={25} />
<h5 className="pl-2 text-[20px] font-[500]">{cart && cart.length} Reservation</h5>
</div>

{/* cart Single Items */}
{/* wishlist */}
<br />
<div className="w-full border-t">
{cart &&
Expand Down

0 comments on commit 80e7dd3

Please sign in to comment.