Skip to content

Commit d7df6a4

Browse files
committed
feat: implement backup management features and export functionality
1 parent 2b2068f commit d7df6a4

File tree

5 files changed

+340
-221
lines changed

5 files changed

+340
-221
lines changed

apps/nextjs/src/app/[locale]/manage/tools/backups/_components/create-backup-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const CreateBackupButton = () => {
1313
const { openModal } = useModalAction(CreateBackupModal);
1414

1515
return (
16-
<Button leftSection={<IconPlus size={16} />} onClick={() => openModal()}>
16+
<Button leftSection={<IconPlus size={16} />} onClick={() => openModal({})}>
1717
{tBackup("action.create.label")}
1818
</Button>
1919
);

apps/nextjs/src/app/[locale]/manage/tools/backups/_components/create-backup-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createModal } from "@homarr/modals";
66
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
77
import { useI18n, useScopedI18n } from "@homarr/translation/client";
88

9-
export const CreateBackupModal = createModal<void>(({ actions }) => {
9+
export const CreateBackupModal = createModal(({ actions }) => {
1010
const t = useI18n();
1111
const tBackup = useScopedI18n("backup");
1212

apps/nextjs/src/app/[locale]/manage/tools/backups/_components/restore-backup-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const RestoreBackupButton = () => {
1313
const { openModal } = useModalAction(RestoreBackupModal);
1414

1515
return (
16-
<Button variant="default" leftSection={<IconDatabaseImport size={16} stroke={1.5} />} onClick={() => openModal()}>
16+
<Button variant="default" leftSection={<IconDatabaseImport size={16} stroke={1.5} />} onClick={() => openModal({})}>
1717
{tBackup("action.restore.label")}
1818
</Button>
1919
);

apps/nextjs/src/app/[locale]/manage/tools/backups/_components/restore-backup-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { BackupValidationSummary } from "./backup-validation-summary";
1313

1414
type RestoreMode = "full" | "merge";
1515

16-
export const RestoreBackupModal = createModal<void>(({ actions }) => {
16+
export const RestoreBackupModal = createModal(({ actions }) => {
1717
const t = useI18n();
1818
const tBackup = useScopedI18n("backup");
1919
const [step, setStep] = useState(0);

0 commit comments

Comments
 (0)