feat(volume-backups): enhance volume backup display with restore functionality

- Wrapped the volume backup handling component with a fragment to include the restore functionality.
- Added a new div for better layout and organization of the volume backup and restore components, improving user experience.
This commit is contained in:
Mauricio Siu
2025-07-05 16:00:01 -06:00
parent c59ea57814
commit 80ede659fb

View File

@@ -76,11 +76,18 @@ export const ShowVolumeBackups = ({
<div className="flex items-center gap-2">
{volumeBackups && volumeBackups.length > 0 && (
<HandleVolumeBackups id={id} volumeBackupType={type} />
<>
<HandleVolumeBackups id={id} volumeBackupType={type} />
<div className="flex items-center gap-2">
<RestoreVolumeBackups
id={id}
type={type}
serverId={serverId}
/>
</div>
</>
)}
<div className="flex items-center gap-2">
<RestoreVolumeBackups id={id} type={type} serverId={serverId} />
</div>
</div>
</div>
</CardHeader>