first commit
This commit is contained in:
24
ui/app/workspace/config/proxy/page.tsx
Normal file
24
ui/app/workspace/config/proxy/page.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { IS_ENTERPRISE } from "@/lib/constants/config";
|
||||
import { useNavigate } from "@tanstack/react-router";
|
||||
import { useEffect } from "react";
|
||||
import ProxyView from "../views/proxyView";
|
||||
|
||||
export default function ProxyPage() {
|
||||
const navigate = useNavigate();
|
||||
|
||||
useEffect(() => {
|
||||
if (!IS_ENTERPRISE) {
|
||||
navigate({ to: "/workspace/config/client-settings", replace: true });
|
||||
}
|
||||
}, [navigate]);
|
||||
|
||||
if (!IS_ENTERPRISE) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="mx-auto flex w-full max-w-7xl">
|
||||
<ProxyView />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user