From e249ce5e4090efe706a755c618763b82033e8152 Mon Sep 17 00:00:00 2001 From: Jiahan William Wen Date: Sat, 22 Jun 2024 12:37:05 -0400 Subject: [PATCH] In getQuestions() in function.jsx under client/src/pages/FAQ: turned off getting questions from API to avoid getting Snackbar error message; hard coded 2T4 FAQS in function.jsx under client/src/pages/FAQ --- client/src/pages/FAQ/functions.jsx | 49 ++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/client/src/pages/FAQ/functions.jsx b/client/src/pages/FAQ/functions.jsx index 109759aa..b16ac5fb 100644 --- a/client/src/pages/FAQ/functions.jsx +++ b/client/src/pages/FAQ/functions.jsx @@ -7,12 +7,15 @@ export function getInformation() { export async function getQuestions(setSnackbar) { // await new Promise(r => setTimeout(r, 2000)); - try { + + // load FAQs from API + /* try { const response = await axios.get('/faq/answered'); return response.data.faqs; } catch (e) { setSnackbar(e.toString()); - } + } */ + return [ { question: 'What is F!rosh week?', @@ -36,11 +39,53 @@ export async function getQuestions(setSnackbar) { category: 'General', }, { + question: "What if I can't afford the ticket for F!rosh Week?", + answer: 'That’s okay! You can apply for a bursary when you sign up for F!rosh Week!', + lastUpdated: '12:17pm, Jun 22, 2024', + category: 'General', + }, + { + question: 'What should I bring on the first day?', + answer: + 'Yourself! A good attitude! And a whole lotta HYPE! But also these: Proof of Registration(more info on what proof is needed when you register!); Sunscreen! #safetyissexy; Comfortable shoes; Health Card (just in case you need it)', + lastUpdated: '12:21pm, Jun 22, 2024', + category: 'General', + }, + { + question: 'What do I do if I arrive late?', + answer: + 'Please try to arrive on time (Toronto transit and traffic can be unpredictable, so we highly recommend a bit of buffer!), but if you arrive late due to unforeseen circumstances, make your way to The Garden (you can ask anyone wearing a F!rosh Week shirt that isn’t yellow) and we can get you to your group from there! \n\n If you know in advance that you will be arriving late, please send us a message at registration@orientation.skule.ca after registering so your leedurs can plan accordingly!', + lastUpdated: '12:21pm, Jun 22, 2024', + category: 'General', + }, + { + question: 'How do I register for F!rosh Week?', + answer: + 'Register for F!rosh Week at orientation.skule.ca starting July 5th! Follow us on Instagram @froshweek and join the F!rosh Week 2T4 Discord server. To stay up to date throughout the summer! Important links can also be found at linktr.ee/froshweek. Link to Discord server: https://discord.gg/RQrPQMYrHw', + lastUpdated: '12:30pm, Jun 22, 2024', + category: 'Registration', + }, + { + question: 'What do I get by registering?', + answer: + 'Access to all F!rosh week events! Your very own F!rosh Kit, full of skule-themed items! Memories that will last a lifetime <3', + lastUpdated: '12:30pm, Jun 22, 2024', + category: 'Registration', + }, + /*{ question: 'What are in the F!rosh Kits?', answer: "Lots of fun items to make your F!rosh Week memorable! It includes a yellow hard hat, F!rosh Shirt, a water bottle to keep you hydrated and many more suprises! Just not a pet dino because they didn't fit in the box :(", lastUpdated: '2:00 pm', category: 'F!rosh Kits', + },*/ //old frosh kits answer before 2T4 + { + question: 'What comes in the F!rosh Kits?', + answer: + 'A dashing yellow hardhat!; SkuleTM bag to hold all of your super awesome new merch; Water bottle to keep you hydrated #hydrationissexy :) ; Not one, but TWO snazzy t-shirts; So. much. F!rosh. Swag.', + + lastUpdated: '12:30pm, Jun 22, 2024', + category: 'F!rosh Kits', }, { question: 'When and How are we getting the F!rosh kits?',