Create families list screen

This commit is contained in:
2023-07-07 18:41:00 +02:00
parent 947a3ad274
commit 09f1584d18
3 changed files with 156 additions and 28 deletions

View File

@ -36,21 +36,6 @@ export function AsyncWidget(p: {
load();
});
if (state === State.Loading || p.ready === false)
return (
<div
style={{
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
flex: "1",
}}
>
<CircularProgress />
</div>
);
if (state === State.Error)
return (
<div
@ -74,6 +59,21 @@ export function AsyncWidget(p: {
<Button onClick={load}>Réessayer</Button>
</div>
);
console.log(p, counter.current);
if (state === State.Loading || p.ready === false)
return (
<div
style={{
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
flex: "1",
}}
>
<CircularProgress />
</div>
);
return p.build();
}