Skip to content

Commit

Permalink
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
Browse files Browse the repository at this point in the history
…evelopment
  • Loading branch information
karthikscale3 committed Jul 3, 2024
2 parents e34cac7 + bdc91c2 commit 01644fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default function PageClient() {
},
});
const result = await response.json();
console.log(result);
setApiKey(result.data.apiKey);
handleApiKeyGenerated(result.data.apiKey);
toast("Copy your API Key!", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,18 @@ export default function ProjectView() {
<CardContent className="w-full">
<Form {...ProjectDetailsForm}>
<form className="flex w-full flex-col gap-4">
<FormLabel>Project ID</FormLabel>
<div className="flex items-center bg-muted p-2 rounded-md justify-between">
<p
onClick={() => {
navigator.clipboard.writeText(project.project.id);
toast.success("Copied to clipboard");
}}
className="text-sm select-all dark:selection:bg-orange-600 selection:bg-orange-300"
>
{project.project.id}
</p>
</div>
<FormField
control={ProjectDetailsForm.control}
name="name"
Expand Down

0 comments on commit 01644fb

Please sign in to comment.