fix(UI): remember backup settings tab selection [EE-6347] (#10765)

* remember backup settings tab selection

* address review comments
pull/10820/head
Prabhat Khera 12 months ago committed by GitHub
parent 0f9b91a15f
commit fb3b00de41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,6 @@
import { Download } from 'lucide-react';
import { useState } from 'react';
import { useLocalStorage } from '@/react/hooks/useLocalStorage';
import { Widget, WidgetBody, WidgetTitle } from '@@/Widget';
import { FormSection } from '@@/form-components/FormSection';
@ -10,7 +11,10 @@ import { BackupFileForm } from './BackupFileForm';
import { BackupS3Form } from './BackupS3Form';
export function BackupSettingsPanel() {
const [backupType, setBackupType] = useState(options[0].value);
const [backupType, setBackupType] = useLocalStorage(
'settings_backup_type',
options[0].value
);
return (
<Widget>

Loading…
Cancel
Save