-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove permissions form field in ecosystem partners page + UI adjusme…
…nts (#4747) ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR removes unused code related to partner permissions and updates UI components in the dashboard ecosystem section. ### Detailed summary - Removed unused `PartnerPermission` type and related code - Updated UI components in the dashboard ecosystem section for better user experience > The following files were skipped due to too many changes: `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/client/add-partner-form.client.tsx` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
Showing
12 changed files
with
126 additions
and
218 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
.../dashboard/connect/ecosystem/[slug]/(active)/components/client/AddPartnerDialogButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
"use client"; | ||
|
||
import { Button } from "@/components/ui/button"; | ||
import { | ||
Dialog, | ||
DialogContent, | ||
DialogHeader, | ||
DialogTitle, | ||
DialogTrigger, | ||
} from "@/components/ui/dialog"; | ||
import { PlusIcon } from "lucide-react"; | ||
import { useState } from "react"; | ||
import type { Ecosystem } from "../../../../types"; | ||
import { AddPartnerForm } from "./add-partner-form.client"; | ||
|
||
export function AddPartnerDialogButton(props: { | ||
ecosystem: Ecosystem; | ||
}) { | ||
const [open, setOpen] = useState(false); | ||
return ( | ||
<Dialog open={open} onOpenChange={setOpen}> | ||
<DialogTrigger asChild> | ||
<Button className="gap-2 max-sm:w-full"> | ||
<PlusIcon className="size-4" /> | ||
Add Partner | ||
</Button> | ||
</DialogTrigger> | ||
<DialogContent> | ||
<DialogHeader className="mb-2"> | ||
<DialogTitle className="text-2xl font-semibold tracking-tight"> | ||
Add Partner | ||
</DialogTitle> | ||
</DialogHeader> | ||
<AddPartnerForm | ||
ecosystem={props.ecosystem} | ||
onPartnerAdded={() => setOpen(false)} | ||
/> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.