outsourced modals

This commit is contained in:
2026-05-19 21:54:02 +02:00
parent d5b6c9665c
commit 11c2372cae
5 changed files with 109 additions and 74 deletions
+5 -1
View File
@@ -10,7 +10,11 @@ export const fetchUsers = async () => {
return data;
};
export const confirmUser = async (username: string) => {
export const confirmUser = async (username: string | null) => {
if (!username) {
return;
}
console.warn("confirmUser is fetching!");
const response = await fetch(
`${API_BASE}/default/confirm-user?username=${username}`,