Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Remove prop

Vasek Mlejnsky1484247d22d8
diff --git a/components/GitHubButton.tsx b/components/GitHubButton.tsx
index eb72308ab..4d3bfc621 100644
--- a/components/GitHubButton.tsx
+++ b/components/GitHubButton.tsx
@@ -10,14 +10,12 @@ import Text from 'components/Text'
export interface Props {
className?: string
- text: string
onClick?: (e: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>) => any
isDisabled?: boolean
}
function GitHubButton({
className,
- text,
onClick,
isDisabled,
}: Props) {
@@ -45,7 +43,7 @@ function GitHubButton({
<Text
size={Text.size.S2}
className="font-medium"
- text={text}
+ text="Continue with GitHub"
/>
</button>
)
diff --git a/pages/agent/smol-developer.tsx b/pages/agent/smol-developer.tsx
index c3ba013d9..9e1b6e844 100644
--- a/pages/agent/smol-developer.tsx
+++ b/pages/agent/smol-developer.tsx
@@ -80,7 +80,6 @@ function SmolDeveloper() {
/>
</div>
-
{user ? (
<Button
text="Sign out"
@@ -88,7 +87,6 @@ function SmolDeveloper() {
/>
) : (
<GitHubButton
- text="Continue with GitHub"
onClick={signInWithGitHub}
/>
)}