diff --git a/apps/client/app/modules/details/components/schedule-summary.tsx b/apps/client/app/modules/details/components/schedule-summary.tsx index cdaec1b..e264c55 100644 --- a/apps/client/app/modules/details/components/schedule-summary.tsx +++ b/apps/client/app/modules/details/components/schedule-summary.tsx @@ -1,5 +1,5 @@ import { useQuery } from "@tanstack/react-query"; -import { Database, Pencil } from "lucide-react"; +import { Database, Pencil, Play } from "lucide-react"; import { useMemo } from "react"; import { listSnapshotsOptions } from "~/api-client/@tanstack/react-query.gen"; import { ByteSize } from "~/components/bytes-size"; @@ -14,11 +14,12 @@ type Props = { schedule: BackupSchedule; repository: Repository; handleToggleEnabled: (enabled: boolean) => void; + handleRunBackupNow: () => void; setIsEditMode: (isEdit: boolean) => void; }; export const ScheduleSummary = (props: Props) => { - const { volume, schedule, repository, handleToggleEnabled, setIsEditMode } = props; + const { volume, schedule, repository, handleToggleEnabled, handleRunBackupNow, setIsEditMode } = props; const { data: snapshots, isLoading: loadingSnapshots } = useQuery({ ...listSnapshotsOptions({ @@ -61,6 +62,10 @@ export const ScheduleSummary = (props: Props) => {
+