feat(tasker): open project settings in modal
This commit is contained in:
@@ -5,13 +5,18 @@
|
||||
*/
|
||||
|
||||
import { redirect } from "react-router";
|
||||
import {
|
||||
buildProjectSettingsModalUrl,
|
||||
getProjectSettingsModalTabFromPath,
|
||||
} from "@/components/project/settings/project-settings-modal.utils";
|
||||
import type { Route } from "./+types/project-settings";
|
||||
|
||||
export const clientLoader = ({ params }: Route.ClientLoaderArgs) => {
|
||||
const { workspaceSlug, projectId } = params;
|
||||
const splat = params["*"] || "";
|
||||
const destination = `/${workspaceSlug}/settings/projects/${projectId}${splat ? `/${splat}` : ""}/`;
|
||||
throw redirect(destination);
|
||||
const tab = getProjectSettingsModalTabFromPath(splat);
|
||||
|
||||
throw redirect(buildProjectSettingsModalUrl(workspaceSlug, projectId, tab));
|
||||
};
|
||||
|
||||
export default function ProjectSettings() {
|
||||
|
||||
Reference in New Issue
Block a user