We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c59ffbc commit e1460b1Copy full SHA for e1460b1
site/src/components/VSCodeDesktopButton/VSCodeDesktopButton.tsx
@@ -1,18 +1,18 @@
1
import Button from "@material-ui/core/Button"
2
import { getApiKey } from "api/api"
3
import { VSCodeIcon } from "components/Icons/VSCodeIcon"
4
-import React from "react"
+import { FC, PropsWithChildren, useState } from "react"
5
6
export interface VSCodeDesktopButtonProps {
7
userName: string
8
workspaceName: string
9
agentName?: string
10
}
11
12
-export const VSCodeDesktopButton: React.FC<
13
- React.PropsWithChildren<VSCodeDesktopButtonProps>
+export const VSCodeDesktopButton: FC<
+ PropsWithChildren<VSCodeDesktopButtonProps>
14
> = ({ userName, workspaceName, agentName }) => {
15
- const [loading, setLoading] = React.useState(false)
+ const [loading, setLoading] = useState(false)
16
17
return (
18
<Button
0 commit comments