Fix flight load error display
This commit is contained in:
parent
2dd6edd156
commit
9de454d491
@ -13,10 +13,15 @@ export default function Flight() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container py="xl">
|
<Container>
|
||||||
<Stack h="calc(100vh - 95px)" m="0" p="0">
|
<Stack h="calc(100vh - 95px)">
|
||||||
{flight.isError ? (
|
{flight.isError ? (
|
||||||
<Text c="red">Error fetching flight</Text>
|
<Stack align="center" justify="center" h="100%" m="0" p="0">
|
||||||
|
<Text c="red">
|
||||||
|
<IconAlertTriangle size="3rem" />
|
||||||
|
</Text>
|
||||||
|
<Text c="red">Error fetching flight</Text>
|
||||||
|
</Stack>
|
||||||
) : flight.isPending ? (
|
) : flight.isPending ? (
|
||||||
<Center h="100%">
|
<Center h="100%">
|
||||||
<Loader />
|
<Loader />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user