feat: add manual bank card screens
Add cards, operations, refunds, categories and monthly summaries with Mantine date controls. Derive banking types from runtime OpenAPI. Cover recovery and session isolation.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
function useBankFormFocus() {
|
||||
const [trigger] = useState(() => document.activeElement);
|
||||
useEffect(
|
||||
() => () => {
|
||||
queueMicrotask(() => {
|
||||
if (trigger instanceof HTMLElement && trigger.isConnected)
|
||||
trigger.focus();
|
||||
});
|
||||
},
|
||||
[trigger],
|
||||
);
|
||||
}
|
||||
|
||||
export { useBankFormFocus };
|
||||
Reference in New Issue
Block a user