Skip to content

feat: add experimental button to open vscode locally #5654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix React imports
  • Loading branch information
kylecarbs committed Jan 10, 2023
commit 2245dc6dfdf7941d8a793eb5817ef13c702c39db
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { Story } from "@storybook/react"
import {
MockWorkspace,
MockWorkspaceAgent,
} from "testHelpers/renderHelpers"
import { MockWorkspace, MockWorkspaceAgent } from "testHelpers/renderHelpers"
import {
VSCodeDesktopButton,
VSCodeDesktopButtonProps,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import Button from "@material-ui/core/Button"
import { getApiKey } from "api/api"
import { VSCodeIcon } from "components/Icons/VSCodeIcon"
import React from "react"
import { FC, PropsWithChildren, useState } from "react"

export interface VSCodeDesktopButtonProps {
userName: string
workspaceName: string
agentName?: string
}

export const VSCodeDesktopButton: React.FC<
React.PropsWithChildren<VSCodeDesktopButtonProps>
export const VSCodeDesktopButton: FC<
PropsWithChildren<VSCodeDesktopButtonProps>
> = ({ userName, workspaceName, agentName }) => {
const [loading, setLoading] = React.useState(false)
const [loading, setLoading] = useState(false)

return (
<Button
Expand Down