-
Notifications
You must be signed in to change notification settings - Fork 1
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
Updated /community-units UI for small screen view port #333
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
// console.log({values}) | ||
switch ((new URL(window.location.href))?.searchParams.get('qf')) { | ||
case "all": | ||
router.push(`/community-units/?q=${query}&qf=all`) |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
DOM text
router.push(`/community-units/?q=${query}&qf=all`) | ||
break; | ||
case "approved": | ||
router.push(`/community-units/?q=${query}&qf=approved&is_approved=true`) |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
DOM text
router.push(`/community-units/?q=${query}&qf=approved&is_approved=true`) | ||
break; | ||
case "new_pending_approval": | ||
router.push(`/community-units/?q=${query}&qf=new_pending_approval&has_edits=false&pending_approval=true`) |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
DOM text
router.push(`/community-units/?q=${query}&qf=new_pending_approval&has_edits=false&pending_approval=true`) | ||
break; | ||
case "updated_pending_approval": | ||
router.push(`/community-units/?q=${query}&qf=updated_pending_approval&has_edits=true&is_approved=true`) |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
DOM text
router.push(`/community-units/?q=${query}&qf=updated_pending_approval&has_edits=true&is_approved=true`) | ||
break; | ||
default: | ||
router.push(`/community-units/?q=${query}&qf=is_rejected&is_rejected=true`) |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
No description provided.