refactor(multi-server): improve alerts and add instructions to ssh keys

This commit is contained in:
Mauricio Siu
2024-09-22 13:57:13 -06:00
parent 1a877340d3
commit f0f34df13c
13 changed files with 382 additions and 207 deletions
@@ -17,14 +17,23 @@ export const ShowTraefikSystem = ({ serverId }: Props) => {
isLoading,
error,
isError,
} = api.settings.readDirectories.useQuery({
serverId,
});
} = api.settings.readDirectories.useQuery(
{
serverId,
},
{
retry: 2,
},
);
return (
<div className={cn("mt-6 md:grid gap-4")}>
<div className="flex flex-col lg:flex-row gap-4 md:gap-10 w-full">
{isError && <AlertBlock type="error">{error?.message}</AlertBlock>}
{isError && (
<AlertBlock type="error" className="w-full">
{error?.message}
</AlertBlock>
)}
{isLoading && (
<div className="w-full flex-col gap-2 flex items-center justify-center h-[55vh]">
<span className="text-muted-foreground text-lg font-medium">