forked from github-starred/komodo
fixes
This commit is contained in:
@@ -6,7 +6,7 @@ import { Link, useLocation, useParams } from "react-router-dom";
|
||||
|
||||
import { useUser } from "@hooks";
|
||||
import { ServerName } from "@pages/server";
|
||||
import { DeploymentName } from "@pages/deployment";
|
||||
import { DeploymentName } from "@resources/deployment/util";
|
||||
|
||||
export const Paths = () => {
|
||||
const path = useLocation().pathname.split("/")[1];
|
||||
|
||||
@@ -22,7 +22,6 @@ import {
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@ui/card";
|
||||
import { useRead } from "@hooks";
|
||||
|
||||
export const UpdateUser = ({ userId }: { userId: string }) => {
|
||||
// const { data } = useUpdateUser(userId);
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
import { Header } from "@components/header";
|
||||
import { useUser } from "@hooks";
|
||||
import { Toaster } from "@ui/toast";
|
||||
import { useLocation } from "react-router-dom";
|
||||
import { Outlet, useNavigate } from "react-router-dom";
|
||||
import { Outlet, useLocation, useNavigate } from "react-router-dom";
|
||||
|
||||
export const Layout = () => {
|
||||
const { data, isError } = useUser();
|
||||
const navigate = useNavigate();
|
||||
const { isError } = useUser();
|
||||
const path = useLocation().pathname;
|
||||
// if (isError && (!path.includes("login") || !path.includes("signup"))) navigate("/login");
|
||||
|
||||
console.log(data);
|
||||
const nav = useNavigate();
|
||||
if (isError && !path.includes("login")) nav("/login");
|
||||
// const navigate = useNavigate();
|
||||
// const path = useLocation().pathname;
|
||||
// if (isError) return navigate("/login");
|
||||
// if ((isError && !path.includes("login")) || !path.includes("signup"))
|
||||
// navigate("/login");
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -20,7 +20,7 @@ const NewButton = () => {
|
||||
return (
|
||||
<>
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
className="w-[200px] flex items-center justify-between"
|
||||
variant="outline"
|
||||
|
||||
@@ -2,11 +2,7 @@ import { useParams } from "react-router-dom";
|
||||
import { useSetRecentlyViewed } from "@hooks";
|
||||
import { Resource } from "@layouts/resource";
|
||||
import { CardDescription } from "@ui/card";
|
||||
import {
|
||||
DeploymentName,
|
||||
DeploymentStatus,
|
||||
DeploymentStatusIcon,
|
||||
} from "./components/util";
|
||||
import { DeploymentName, DeploymentStatus, DeploymentStatusIcon } from "./util";
|
||||
import {
|
||||
RedeployContainer,
|
||||
RemoveContainer,
|
||||
|
||||
Reference in New Issue
Block a user