From a929efccf0a0c338f5c4e5d0471931bf93b862c6 Mon Sep 17 00:00:00 2001 From: dev129 <76431221+dev129@users.noreply.github.com> Date: Sat, 12 Oct 2024 20:25:56 +0530 Subject: [PATCH 1/3] Incenetive Offfers --- frontend/src/App.jsx | 8 ++- frontend/src/components/Shared/Navbar.jsx | 2 +- frontend/src/components/Shared/Offers.jsx | 87 +++++++++++++++++++++++ 3 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 frontend/src/components/Shared/Offers.jsx diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index c5a927fb..4805fcf1 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1,15 +1,19 @@ // src/App.js import './App.css'; +import React from 'react'; +import { useState } from 'react'; import Navbar from '../src/components/Shared/Navbar'; import Footer from '../src/components/Shared/Footer'; import { Outlet } from 'react-router-dom'; import BackToTopButton from './components/Shared/BackToTopButton'; import Preloader from './components/Preloader'; - +import Offers from './components/Shared/Offers' function App() { + const [showModal, setShowModal] = useState(true); return ( <> + setShowModal(false)} /> @@ -18,4 +22,4 @@ function App() { ); } -export default App; +export default App; \ No newline at end of file diff --git a/frontend/src/components/Shared/Navbar.jsx b/frontend/src/components/Shared/Navbar.jsx index e74f284b..e8317316 100644 --- a/frontend/src/components/Shared/Navbar.jsx +++ b/frontend/src/components/Shared/Navbar.jsx @@ -70,7 +70,7 @@ const Navbar = () => { return (