refactor: make command globally available

This commit is contained in:
djknaeckebrot
2024-12-10 14:15:39 +01:00
parent 029cbf4498
commit 54b6a850b7
3 changed files with 111 additions and 112 deletions

View File

@@ -36,7 +36,6 @@ import { Fragment } from "react";
import { toast } from "sonner";
import { ProjectEnviroment } from "./project-enviroment";
import { UpdateProject } from "./update";
import { SearchCommand } from "@/components/dashboard/search-command";
export const ShowProjects = () => {
const utils = api.useUtils();
@@ -54,9 +53,6 @@ export const ShowProjects = () => {
return (
<>
{/*@ts-expect-error Type mismatch*/}
<SearchCommand data={data} />
{data?.length === 0 && (
<div className="mt-6 flex h-[50vh] w-full flex-col items-center justify-center space-y-4">
<FolderInput className="size-10 md:size-28 text-muted-foreground" />