Skip to content

Commit

Permalink
Merge pull request #22 from lksnjw/friday-mor
Browse files Browse the repository at this point in the history
done editing
  • Loading branch information
lksnjw authored Oct 14, 2024
2 parents 8548ca6 + 4200f24 commit 767a6c2
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 20 deletions.
15 changes: 15 additions & 0 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,17 @@ import {
startSyncDeliveryOrderStatus,
} from './controllers/DLOcontroller.js' // Import the periodic check

<<<<<<< HEAD
=======

//Help Routes
import routes from './routes/Help/index.js'


<<<<<<< Updated upstream
=======
>>>>>>> f32c50044c74728373eafb28103c74438c160c64
>>>>>>> Stashed changes
// Production-only delivery task scheduling
if (process.env.SERVER_ENV === 'production') {
checkForAvailableDrivers()
Expand All @@ -46,13 +52,22 @@ if (process.env.SERVER_ENV === 'production') {
cleanUpDuplicateDeliveries()
}

<<<<<<< Updated upstream
=======
<<<<<<< HEAD
=======
>>>>>>> Stashed changes
// Blog, Comments, and News Imports (Merged Content)
import blogRouter from './routes/Blog.js'
import commentRoutes from './routes/comments.js'
import newsRoutes from './routes/newsRoutes.js'


// Error handling
<<<<<<< Updated upstream
=======
>>>>>>> f32c50044c74728373eafb28103c74438c160c64
>>>>>>> Stashed changes
import { errorHandler, notFound } from './middlewares/errorMiddleware.js'

// Set up port from environment or default to 8000
Expand Down
19 changes: 0 additions & 19 deletions frontend/src/Components/Home/DHeader.jsx

This file was deleted.

31 changes: 31 additions & 0 deletions frontend/src/Components/delivery/DHeader.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React from 'react'

Check failure on line 1 in frontend/src/Components/delivery/DHeader.jsx

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

frontend/src/Components/delivery/DHeader.jsx#L1

[no-unused-vars] 'React' is defined but never used.
import { Link } from 'react-router-dom'
import logo from '../../assets/Logo.png'

const Header = () => {
return (
<div>
<div className="flex items-center justify-between py-6 mx-auto border-b max-w-7xl">
<div>
<Link to="/">
<img src={logo} alt="Logo" width={160} height={160} />
</Link>
</div>

<div className="flex items-center gap-4 text-sm">
<div className="flex items-center gap-4">
<h1>Welcome to FarmCart🌱 </h1>
<Link
to="/help"
className="text-black hover:text-[#99DD05] cursor-pointer hover:underline text-sm"
>
Help & Support
</Link>
</div>
</div>
</div>
</div>
)
}

export default Header
2 changes: 1 addition & 1 deletion frontend/src/Layouts/DLayout.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Outlet } from 'react-router-dom'
// import Footer from '../Components/Home/Footer'
import Footer from '../Components/Home/FooterDashboard'
import DHeader from '../Components/Home/DHeader'
import DHeader from '../Components/delivery/DHeader'

function DLayout() {
return (
Expand Down

0 comments on commit 767a6c2

Please sign in to comment.