mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Fix ESLint errors: remove unused navigate imports
Removed unused `useNavigate` imports from: - PushReminderDialog.tsx - PushWarningButton.tsx These were causing ESLint errors. The navigate hook was imported but never used in either component. ESLint should now pass without errors.
This commit is contained in:
1 parent
c25517a58f
commit
262414257a
2 files changed
+4
-8
No files matched your search
@@ -12,7 +12,6 @@ import { Checkbox } from '@/components/ui/checkbox';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { GitBranch, Upload, AlertTriangle, X } from 'lucide-react';
|
||||
import { useGitStatus } from '@/hooks/useGitStatus';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { GitDialog } from '@/components/GitDialog';
|
||||
|
||||
interface PushReminderDialogProps {
|
||||
@@ -33,7 +32,6 @@ export function PushReminderDialog({
|
||||
const [dontShowAgain, setDontShowAgain] = useState(false);
|
||||
const [isGitDialogOpen, setIsGitDialogOpen] = useState(false);
|
||||
const { data: gitStatus } = useGitStatus(projectId);
|
||||
const navigate = useNavigate();
|
||||
|
||||
// Close the reminder dialog when git dialog opens
|
||||
useEffect(() => {
|
||||
@@ -63,7 +61,7 @@ export function PushReminderDialog({
|
||||
if (dontShowAgain) {
|
||||
onDisableReminders();
|
||||
}
|
||||
|
||||
|
||||
if (hasNoRemote) {
|
||||
// Close reminder dialog and open git dialog
|
||||
onOpenChange(false);
|
||||
|
||||
@@ -4,7 +4,6 @@ import { GitDialog } from '@/components/GitDialog';
|
||||
import { AlertTriangle, Upload, GitBranch } from 'lucide-react';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { useGitStatus } from '@/hooks/useGitStatus';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import {
|
||||
Tooltip,
|
||||
TooltipContent,
|
||||
@@ -18,14 +17,13 @@ interface PushWarningButtonProps {
|
||||
variant?: 'icon' | 'full';
|
||||
}
|
||||
|
||||
export function PushWarningButton({
|
||||
projectId,
|
||||
export function PushWarningButton({
|
||||
projectId,
|
||||
className,
|
||||
variant = 'icon'
|
||||
variant = 'icon'
|
||||
}: PushWarningButtonProps) {
|
||||
const [isGitDialogOpen, setIsGitDialogOpen] = useState(false);
|
||||
const { data: gitStatus } = useGitStatus(projectId);
|
||||
const navigate = useNavigate();
|
||||
|
||||
if (!gitStatus?.isGitRepo) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user