|
1 | | -import { Check, Copy } from "lucide-react"; |
2 | | -import * as React from "react"; |
| 1 | +// import { Check, Copy } from "lucide-react"; |
| 2 | + |
3 | 3 | import { Input } from "#shadcn/components/ui/input"; |
4 | 4 | import { |
5 | 5 | Select, |
|
8 | 8 | SelectTrigger, |
9 | 9 | SelectValue, |
10 | 10 | } from "#shadcn/components/ui/select"; |
11 | | -import { background } from "storybook/internal/theming"; |
12 | 11 |
|
13 | 12 | interface RequestLineEditorProps { |
14 | 13 | selectedMethod: string; |
@@ -46,20 +45,20 @@ const METHOD_COLORS = { |
46 | 45 | }, |
47 | 46 | }; |
48 | 47 |
|
49 | | -function CopyIcon() { |
50 | | - const [isActive, setIsActive] = React.useState(false); |
51 | | - function handleClick() { |
52 | | - setIsActive(true); |
53 | | - setTimeout(() => { |
54 | | - setIsActive(false); |
55 | | - }, 1000); |
56 | | - } |
57 | | - return ( |
58 | | - <div className="size-4" onClick={handleClick}> |
59 | | - {isActive ? <Check size={16}/> : <Copy size={16}/>} |
60 | | - </div> |
61 | | - ); |
62 | | -} |
| 48 | +// function CopyIcon() { |
| 49 | +// const [isActive, setIsActive] = React.useState(false); |
| 50 | +// function handleClick() { |
| 51 | +// setIsActive(true); |
| 52 | +// setTimeout(() => { |
| 53 | +// setIsActive(false); |
| 54 | +// }, 1000); |
| 55 | +// } |
| 56 | +// return ( |
| 57 | +// <div className="size-4" onClick={handleClick}> |
| 58 | +// {isActive ? <Check size={16}/> : <Copy size={16}/>} |
| 59 | +// </div> |
| 60 | +// ); |
| 61 | +// } |
63 | 62 |
|
64 | 63 | function RequestMethodSelector({ |
65 | 64 | selectedMethod, |
@@ -109,4 +108,4 @@ function RequestLineEditor({ |
109 | 108 | ); |
110 | 109 | } |
111 | 110 |
|
112 | | -export { RequestLineEditor, type RequestLineEditorProps }; |
| 111 | +export { RequestLineEditor, type RequestLineEditorProps, METHOD_COLORS }; |
0 commit comments