Create families list screen
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user