Move backup restore functionality to dashboard

This commit is contained in:
2026-06-08 08:05:20 +02:00
parent 444d347c56
commit f7ad7001d7
5 changed files with 303 additions and 220 deletions
+2 -3
View File
@@ -17,7 +17,6 @@ import { isIosDevice, isRunningStandalone } from '../hooks/usePwaInstall.js'
interface SettingsFormProps {
logbookId?: string | null
onLogbookRestored?: (logbookId: string, title: string) => void
}
interface Collaborator {
@@ -34,7 +33,7 @@ const bufferToHex = (buffer: ArrayBuffer): string => {
.join('')
}
export default function SettingsForm({ logbookId, onLogbookRestored }: SettingsFormProps) {
export default function SettingsForm({ logbookId }: SettingsFormProps) {
const { t } = useTranslation()
const { showConfirm, showAlert } = useDialog()
@@ -374,7 +373,7 @@ export default function SettingsForm({ logbookId, onLogbookRestored }: SettingsF
)}
{logbookId && isOwner && (
<LogbookBackupPanel logbookId={logbookId} onRestored={onLogbookRestored} />
<LogbookBackupPanel logbookId={logbookId} />
)}
{logbookId && isOwner && (