File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/settings Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ export function ProjectGeneralSettingsPageUI(props: {
358358 rotateSecretKey = { props . rotateSecretKey }
359359 />
360360
361+ < ProjectIdCard project = { project } />
362+
361363 < AllowedDomainsSetting
362364 form = { form }
363365 isUpdatingProject = { updateProject . isPending }
@@ -434,6 +436,31 @@ function ProjectNameSetting(props: {
434436 ) ;
435437}
436438
439+ function ProjectIdCard ( props : {
440+ project : Project ;
441+ } ) {
442+ return (
443+ < SettingsCard
444+ header = { {
445+ title : "Project ID" ,
446+ description : "This is your project's ID on thirdweb" ,
447+ } }
448+ bottomText = "Used when interacting with the thirdweb API"
449+ noPermissionText = { undefined } // TODO
450+ errorText = { undefined }
451+ >
452+ < CopyTextButton
453+ textToCopy = { props . project . id }
454+ textToShow = { props . project . id }
455+ variant = "outline"
456+ className = "w-full justify-between truncate bg-background px-3 py-2 font-mono text-muted-foreground lg:w-[450px]"
457+ tooltip = "Copy Project ID"
458+ copyIconPosition = "right"
459+ />
460+ </ SettingsCard >
461+ ) ;
462+ }
463+
437464function ProjectImageSetting ( props : {
438465 updateProjectImage : ( file : File | undefined ) => Promise < void > ;
439466 avatar : string | null ;
You can’t perform that action at this time.
0 commit comments