chore: upadted profile section with both internal and external url

This commit is contained in:
sai80082 committed 2024-08-28 14:40:55 +05:30
1 parent cc1c1ff6d5
commit 4d7fc6d542
1 file changed
+6 -2
+6 -2
View File
@@ -6,7 +6,7 @@ import Link from "next/link";
import { useConfig } from "@/contexts/ConfigContext";
export default function ProfileInfo() {
const { immichURL } = useConfig();
const { immichURL,exImmichUrl } = useConfig();
const [user, setUser] = React.useState<IUser | null>(null);
const [loading, setLoading] = React.useState(true);
const [errorMessage, setErrorMessage] = useState<string | null>(null);
@@ -30,7 +30,11 @@ export default function ProfileInfo() {
return (
<>
<div className="flex flex-col gap-2 text-xs text-center py-2">
<p className="text-muted-foreground font-mono">Connected to</p>
<p className="text-muted-foreground font-mono">Connected to (External)</p>
<Link href={exImmichUrl} target="_blank" className="font-mono">
{exImmichUrl}
</Link>
<p className="text-muted-foreground font-mono">Connected to (Internal)</p>
<Link href={immichURL} target="_blank" className="font-mono">
{immichURL}
</Link>