diff --git a/src/app/club/admin/eventEdit/[eventID]/page.tsx b/src/app/club/admin/eventEdit/[eventID]/page.tsx index 0b00b43..dfe4372 100644 --- a/src/app/club/admin/eventEdit/[eventID]/page.tsx +++ b/src/app/club/admin/eventEdit/[eventID]/page.tsx @@ -300,6 +300,17 @@ const Page = ({ params }: { params: { eventID: string } }) => { goToAdminPanel(); }; + const save = async (event: any) => { + localStorage.setItem( + `event.${eventUID}`, + JSON.stringify({ + questions, + answers, + }), + ); + toast.info("Saved questions and answers."); + }; + const loadLocal = async () => { const local = JSON.parse(localStorage.getItem(`event.${eventUID}`) || "{}"); console.dir(local); @@ -701,6 +712,19 @@ const Page = ({ params }: { params: { eventID: string } }) => { )} +
+ +
@@ -723,7 +747,7 @@ const Page = ({ params }: { params: { eventID: string } }) => { {loading ? ( ) : ( - "Load Local Questions" + "Load Local Ques." )}