Skip to content
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

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

ertush
Copy link
Owner

@ertush ertush commented Feb 28, 2024

No description provided.

Copy link

vercel bot commented Feb 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
kmhfr 🔄 Building (Inspect) Visit Preview Feb 28, 2024 1:02pm

@ertush ertush merged commit 6722cf7 into main Feb 28, 2024
2 of 3 checks passed
// 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
is reinterpreted as HTML without escaping meta-characters.
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
is reinterpreted as HTML without escaping meta-characters.
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
is reinterpreted as HTML without escaping meta-characters.
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
is reinterpreted as HTML without escaping meta-characters.
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

DOM text
is reinterpreted as HTML without escaping meta-characters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant