File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ import Home from "./pages/Home";
5
5
import About from "./pages/About" ;
6
6
import NotFound from "./pages/404" ;
7
7
import Community from "./pages/Community" ;
8
- import ContactForm from "./pages/Contact" ;
9
8
import Events from "./pages/Events" ;
10
9
import Base from "./layouts/Base" ;
11
10
import Subscribe from "./components/Subscribe" ;
12
11
import Loader from "./components/Loader" ;
12
+ import NewsletterPage from "./pages/NewsletterPage" ;
13
13
14
14
// Custom hook to handle the loader
15
15
const useLoader = ( duration = 1500 ) => {
@@ -43,7 +43,8 @@ export default function App() {
43
43
< Route path = "/about-us" element = { < About handle = { setVisible } /> } />
44
44
< Route path = "/community" element = { < Community /> } />
45
45
< Route path = "/events" element = { < Events /> } />
46
- < Route path = "/contact-us" element = { < ContactForm /> } />
46
+ { /* <Route path="/contact-us" element={<ContactForm />} /> */ }
47
+ < Route path = "/newsletter" element = { < NewsletterPage handle = { setVisible } /> } />
47
48
< Route path = "*" element = { < NotFound /> } />
48
49
</ Routes >
49
50
</ Base >
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ const navigation = [
2
2
{ name : "Home" , to : "/" } ,
3
3
{ name : "Community" , to : "/community" } ,
4
4
{ name : "Events" , to : "/events" } ,
5
- // { name: "Newsletter", to: "/newsletter" },
5
+ { name : "Newsletter" , to : "/newsletter" } ,
6
6
{ name : "About us" , to : "about-us" } ,
7
- { name : "Contact us" , to : "/contact-us" } ,
7
+ // { name: "Contact us", to: "/contact-us" },
8
8
] ;
9
9
export { navigation } ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/b
15
15
const maxWidth = 800 ;
16
16
const resizeObserverOptions = { } ;
17
17
18
- const NewsletterPage = ( ) => {
18
+ const NewsletterPage = ( props ) => {
19
19
const [ file , setFile ] = useState ( ) ;
20
20
const [ editions , setEditions ] = useState ( [ ] ) ;
21
21
const [ numPages , setNumPages ] = useState ( ) ;
@@ -181,7 +181,7 @@ const NewsletterPage = () => {
181
181
</ div >
182
182
</ div > }
183
183
< div className = "my-6" >
184
- < Newsletter />
184
+ < Newsletter handle = { props . handle } />
185
185
</ div >
186
186
</ div >
187
187
) ;
You can’t perform that action at this time.
0 commit comments