changes to the overall structure + improving wallpaper handling

This commit is contained in:
2025-08-01 23:23:50 -03:00
parent 9b818b05f9
commit 2f3949c2e3
17 changed files with 443 additions and 213 deletions

View File

@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import { useState } from 'react';
import { Category } from '../types';
interface CategoryEditModalProps {
@@ -12,10 +12,6 @@ interface CategoryEditModalProps {
const CategoryEditModal: React.FC<CategoryEditModalProps> = ({ category, edit, onClose, onSave, onDelete }) => {
const [name, setName] = useState(category ? category.name : '');
const handleSave = () => {
onSave(name);
};
const handleOverlayClick = (e: React.MouseEvent<HTMLDivElement>) => {
if (e.target === e.currentTarget) {
onClose();