mirror of
https://github.com/portainer/portainer.git
synced 2025-07-28 09:49:40 +02:00
parent
e84dd27e88
commit
6b07c874fc
1 changed files with 2 additions and 6 deletions
|
@ -1,6 +1,5 @@
|
||||||
import { Download } from 'lucide-react';
|
import { Download } from 'lucide-react';
|
||||||
|
import { useState } from 'react';
|
||||||
import { useLocalStorage } from '@/react/hooks/useLocalStorage';
|
|
||||||
|
|
||||||
import { Widget, WidgetBody, WidgetTitle } from '@@/Widget';
|
import { Widget, WidgetBody, WidgetTitle } from '@@/Widget';
|
||||||
import { FormSection } from '@@/form-components/FormSection';
|
import { FormSection } from '@@/form-components/FormSection';
|
||||||
|
@ -11,10 +10,7 @@ import { BackupFileForm } from './BackupFileForm';
|
||||||
import { BackupS3Form } from './BackupS3Form';
|
import { BackupS3Form } from './BackupS3Form';
|
||||||
|
|
||||||
export function BackupSettingsPanel() {
|
export function BackupSettingsPanel() {
|
||||||
const [backupType, setBackupType] = useLocalStorage(
|
const [backupType, setBackupType] = useState(options[0].value);
|
||||||
'settings_backup_type',
|
|
||||||
options[0].value
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Widget>
|
<Widget>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue