-
Notifications
You must be signed in to change notification settings - Fork 22
Add latitude and longitude to polling stations #969
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: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
import { PollingStationsFilters } from '@/components/PollingStationsFilters/PollingStationsFilters'; | ||
import { FilterBadge } from '@/components/ui/badge'; | ||
import { Button } from '@/components/ui/button'; | ||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; | ||
import { Separator } from '@/components/ui/separator'; | ||
import { AuthContext } from '@/context/auth.context'; | ||
import { AuthContext, useAuth } from '@/context/auth-context'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 days ago
To fix the issue, the unused AuthContext
import should be removed from the file. This will clean up the code and eliminate the unnecessary import. The change is straightforward and involves editing the import statement on line 10 to remove AuthContext
.
-
Copy modified line R10
@@ -9,3 +9,3 @@ | ||
import { Separator } from '@/components/ui/separator'; | ||
import { AuthContext, useAuth } from '@/context/auth-context'; | ||
import { useAuth } from '@/context/auth-context'; | ||
import { useCurrentElectionRoundStore } from '@/context/election-round.store'; |
@@ -1,5 +1,5 @@ | |||
import { Button } from '@/components/ui/button'; | |||
import { AuthContext } from '@/context/auth.context'; | |||
import { AuthContext, useAuth } from '@/context/auth-context'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 days ago
To fix the issue, we will remove the unused AuthContext
from the import statement on line 2. This will eliminate the unused import while retaining the useAuth
import, which is actively used in the code. No other changes are necessary, as this does not affect the functionality of the component.
-
Copy modified line R2
@@ -1,3 +1,3 @@ | ||
import { Button } from '@/components/ui/button'; | ||
import { AuthContext, useAuth } from '@/context/auth-context'; | ||
import { useAuth } from '@/context/auth-context'; | ||
import { FC, ReactNode, useContext } from 'react'; |
@@ -1,26 +1,26 @@ | |||
import { AuthContext } from '@/context/auth.context'; | |||
import { AuthContext, useAuth } from '@/context/auth-context'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 days ago
To fix the issue, the unused AuthContext
import should be removed from the file. This will eliminate the unnecessary clutter and ensure the code adheres to best practices. The change is straightforward: modify the import statement on line 1 to only include useAuth
, which is actually used in the file.
-
Copy modified line R1
@@ -1,2 +1,2 @@ | ||
import { AuthContext, useAuth } from '@/context/auth-context'; | ||
import { useAuth } from '@/context/auth-context'; | ||
import NgoAdminDashboard from '@/features/ngo-admin-dashboard/components/Dashboard/Dashboard'; |
No description provided.