-
Notifications
You must be signed in to change notification settings - Fork 37
add Event Edit Page #2080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
add Event Edit Page #2080
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,11 +2,26 @@ import React, { createContext, useContext } from 'react'; | |
|
|
||
| export const SceContext = createContext({ | ||
| user: {}, | ||
| setUser: () => {}, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this change needed? if not please remove so we don't cherry pick |
||
| setUser: () => { }, | ||
| authenticated: false, | ||
| setAuthenticated: () => {}, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
| setAuthenticated: () => { }, | ||
| }); | ||
|
|
||
| // ======== ORIGINAL useSCE LOGIC ======== | ||
| export function useSCE() { | ||
| return useContext(SceContext); | ||
| } | ||
| // ========================================== | ||
|
|
||
| // ======== MOCKED VERSION FOR TESTING ======== | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. again im confused why we have a mock version; was there a reason why we didn't just use Clark locally? |
||
| // export function useSCE() { | ||
| // const context = useContext(SceContext); | ||
| // return { | ||
| // ...context, | ||
| // user: { | ||
| // ...context.user, | ||
| // accessLevel: 3, // Temporarily forced to ADMIN for testing | ||
| // _id: context.user?._id || 'mocked-id-for-testing' | ||
| // } | ||
| // }; | ||
| // } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -238,8 +238,8 @@ export default function CreateEventPage() { | |
| return ( | ||
| <div className="m-10 max-w-4xl px-4 sm:px-6"> | ||
| <div className="mb-8 pt-8 pb-2"> | ||
| <Link to="/events" className="block pb-3 text-sm link link-primary"> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm... this probably doesn't belong in this PR but it's fine |
||
| ← Events | ||
| <Link to="/events" className="btn btn-ghost normal-case text-base pl-0 mb-4 font-medium text-gray-400 hover:text-white hover:bg-transparent"> | ||
| ← Back to Events | ||
| </Link> | ||
| <h1 className="pb-3 text-4xl font-extrabold leading-tight tracking-tight text-gray-900 md:text-5xl dark:text-white"> | ||
| Create event | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this comment