fixing wallpaper
This commit is contained in:
@@ -13,6 +13,7 @@ interface ConfigurationModalProps {
|
||||
onSave: (config: Config) => void;
|
||||
currentConfig: Config;
|
||||
onWallpaperChange: (newConfig: Partial<Config>) => void;
|
||||
onNextWallpaper: () => void;
|
||||
}
|
||||
|
||||
const ConfigurationModal: React.FC<ConfigurationModalProps> = ({
|
||||
@@ -20,6 +21,7 @@ const ConfigurationModal: React.FC<ConfigurationModalProps> = ({
|
||||
onSave,
|
||||
currentConfig,
|
||||
onWallpaperChange,
|
||||
onNextWallpaper,
|
||||
}) => {
|
||||
const [config, setConfig] = useState<Config>(currentConfig);
|
||||
const [activeTab, setActiveTab] = useState('general');
|
||||
@@ -175,6 +177,7 @@ const ConfigurationModal: React.FC<ConfigurationModalProps> = ({
|
||||
onAddWallpaper={handleAddWallpaper}
|
||||
onAddWallpaperFile={handleAddWallpaperFile}
|
||||
onDeleteWallpaper={handleDeleteWallpaper}
|
||||
onNextWallpaper={onNextWallpaper}
|
||||
/>
|
||||
)}
|
||||
{activeTab === 'clock' && (
|
||||
|
||||
Reference in New Issue
Block a user