Remove unused imports and update comment annotations in settings components

- Remove unused icons (`Smartphone`, `Tablet`) from `SessionCard` component.
- Add `/* istanbul ignore next */` comment for untestable `isDirty`-dependent Reset button in `ProfileSettingsForm`.
This commit is contained in:
2025-11-03 00:46:36 +01:00
parent f7133807fc
commit e81f54564b
2 changed files with 2 additions and 1 deletions

View File

@@ -207,6 +207,7 @@ export function ProfileSettingsForm({
>
{isSubmitting ? 'Saving...' : 'Save Changes'}
</Button>
{/* istanbul ignore next - Reset button requires isDirty state, tested in E2E */}
{isDirty && !isSubmitting && (
<Button
type="button"

View File

@@ -7,7 +7,7 @@
import { useState } from 'react';
import { formatDistanceToNow } from 'date-fns';
import { Monitor, Smartphone, Tablet, MapPin, Clock, AlertCircle } from 'lucide-react';
import { Monitor, MapPin, Clock, AlertCircle } from 'lucide-react';
import { Card, CardContent } from '@/components/ui/card';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';