Fix flight load error display
This commit is contained in:
parent
2dd6edd156
commit
9de454d491
@ -13,10 +13,15 @@ export default function Flight() {
|
||||
});
|
||||
|
||||
return (
|
||||
<Container py="xl">
|
||||
<Stack h="calc(100vh - 95px)" m="0" p="0">
|
||||
<Container>
|
||||
<Stack h="calc(100vh - 95px)">
|
||||
{flight.isError ? (
|
||||
<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 ? (
|
||||
<Center h="100%">
|
||||
<Loader />
|
||||
|
Loading…
x
Reference in New Issue
Block a user