Fix import error in App.tsx

Corrected the import path for SupabaseSettings in App.tsx to resolve a module resolution error.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 22:38:05 +00:00
parent 439653fa2f
commit 9ff0592e33
6 changed files with 184 additions and 2 deletions

View File

@@ -0,0 +1,41 @@
import React from 'react';
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { AlertCircle, RefreshCw } from "lucide-react";
import { Button } from "@/components/ui/button";
interface ServerStatusAlertProps {
serverStatus: {
checked: boolean;
connected: boolean;
message: string;
};
checkServerConnection: () => Promise<void>;
}
const ServerStatusAlert = ({ serverStatus, checkServerConnection }: ServerStatusAlertProps) => {
if (!serverStatus.checked || serverStatus.connected) {
return null;
}
return (
<Alert variant="destructive" className="mb-6">
<AlertCircle className="h-4 w-4" />
<AlertTitle> </AlertTitle>
<AlertDescription className="flex flex-col">
<span>{serverStatus.message}</span>
<Button
variant="outline"
size="sm"
className="mt-2 self-start flex items-center gap-1"
onClick={checkServerConnection}
>
<RefreshCw className="h-3 w-3" />
<span> </span>
</Button>
</AlertDescription>
</Alert>
);
};
export default ServerStatusAlert;