diff --git a/src/pages/AboutSettings.tsx b/src/pages/AboutSettings.tsx index 296ee731..837cab14 100644 --- a/src/pages/AboutSettings.tsx +++ b/src/pages/AboutSettings.tsx @@ -1,17 +1,13 @@ import { useState, useEffect } from 'react'; -import { useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { Info, ExternalLink, Loader2, AlertTriangle, ArrowLeft } from 'lucide-react'; +import { Info, ExternalLink, Loader2, AlertTriangle } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { ScrollArea } from '@/components/ui/scroll-area'; import { Alert, AlertDescription } from '@/components/ui/alert'; -import { useIsMobile } from '@/hooks/useIsMobile'; export function AboutSettings() { const { t } = useTranslation(); - const navigate = useNavigate(); - const isMobile = useIsMobile(); const [license, setLicense] = useState(null); const [isLoading, setIsLoading] = useState(true); const [error, setError] = useState(null); @@ -43,40 +39,15 @@ export function AboutSettings() { return (
- {isMobile && ( -
- -
-

- - {t('aboutShakespeare')} -

-

- {t('aboutShakespeareDescription')} -

-
-
- )} - - {!isMobile && ( -
-

- - {t('aboutShakespeare')} -

-

- {t('aboutShakespeareDescription')} -

-
- )} +
+

+ + {t('aboutShakespeare')} +

+

+ {t('aboutShakespeareDescription')} +

+
{/* Project Information */} diff --git a/src/pages/DataSettings.tsx b/src/pages/DataSettings.tsx index ef439a26..568a22c3 100644 --- a/src/pages/DataSettings.tsx +++ b/src/pages/DataSettings.tsx @@ -1,14 +1,13 @@ import { useState, useEffect } from 'react'; import { useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { Download, Trash2, AlertTriangle, Loader2, Database, Info, ArrowLeft } from 'lucide-react'; +import { Download, Trash2, AlertTriangle, Loader2, Database, Info } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from '@/components/ui/alert-dialog'; import { Progress } from '@/components/ui/progress'; import { useToast } from '@/hooks/useToast'; import { useFS } from '@/hooks/useFS'; -import { useIsMobile } from '@/hooks/useIsMobile'; import JSZip from 'jszip'; interface StorageUsageDetails { @@ -33,7 +32,6 @@ export function DataSettings() { const { toast } = useToast(); const { fs } = useFS(); const navigate = useNavigate(); - const isMobile = useIsMobile(); // Format bytes to human readable format const formatBytes = (bytes: number): string => { @@ -198,40 +196,15 @@ export function DataSettings() { return (
- {isMobile && ( -
- -
-

- - {t('dataSettings')} -

-

- {t('dataSettingsDescriptionLong')} -

-
-
- )} - - {!isMobile && ( -
-

- - {t('dataSettings')} -

-

- {t('dataSettingsDescriptionLong')} -

-
- )} +
+

+ + {t('dataSettings')} +

+

+ {t('dataSettingsDescriptionLong')} +

+
{/* Storage Information */} diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 0c99ee16..8e6bec0b 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -127,6 +127,8 @@ export default function Index() { } }; + + const headerContent = null; return (