B1: React Query deeper adoption (P1–P3) #86

Closed
null wants to merge 340 commits from branch/b1-react-query into main
3 changed files with 0 additions and 15 deletions
Showing only changes of commit 02395b9ad4 - Show all commits

View File

@ -142,7 +142,6 @@ export default function BillModal({ bill, initialBill, categories, onClose, onSa
const [bulkUnmatch, setBulkUnmatch] = useState(null);
const [bulkBusy, setBulkBusy] = useState(false);
const isDebtCategory = isDebtCat(categories, categoryId);
const isSnowballCategory = isSnowballCat(categories, categoryId);
const showOnSnowball = snowballInclude || (isSnowballCategory && !snowballExempt);
const canAutoMarkPaid = autopay && autodraftStatus === 'assumed_paid';

View File

@ -21,13 +21,6 @@ export const MobileBillRow = React.memo(function MobileBillRow({ bill, onEdit, o
);
}, [bill.active]);
const autopayClass = useMemo(() => {
return cn(
'rounded bg-emerald-500/20 px-1.5 py-0.5 text-[10px] font-semibold text-emerald-300',
bill.autopay_enabled ? 'opacity-100' : 'opacity-0',
);
}, [bill.autopay_enabled]);
const toggleBtnClass = useMemo(() => {
return cn(
'h-8 px-2.5 text-xs',

View File

@ -270,13 +270,6 @@ export default function CategoriesPage() {
});
}
function onRowKeyDown(event, id) {
if (event.key === 'Enter' || event.key === ' ') {
event.preventDefault();
toggleCategory(id);
}
}
async function handleAdd(e) {
e.preventDefault();
const trimmed = newName.trim();