Skip to content

Commit 256d12c

Browse files
committed
Fix build
1 parent 47bfdad commit 256d12c

1 file changed

Lines changed: 17 additions & 18 deletions

File tree

packages/react-components/src/components/request-line-editor.tsx

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Check, Copy } from "lucide-react";
2-
import * as React from "react";
1+
// import { Check, Copy } from "lucide-react";
2+
33
import { Input } from "#shadcn/components/ui/input";
44
import {
55
Select,
@@ -8,7 +8,6 @@ import {
88
SelectTrigger,
99
SelectValue,
1010
} from "#shadcn/components/ui/select";
11-
import { background } from "storybook/internal/theming";
1211

1312
interface RequestLineEditorProps {
1413
selectedMethod: string;
@@ -46,20 +45,20 @@ const METHOD_COLORS = {
4645
},
4746
};
4847

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+
// }
6362

6463
function RequestMethodSelector({
6564
selectedMethod,
@@ -109,4 +108,4 @@ function RequestLineEditor({
109108
);
110109
}
111110

112-
export { RequestLineEditor, type RequestLineEditorProps };
111+
export { RequestLineEditor, type RequestLineEditorProps, METHOD_COLORS };

0 commit comments

Comments
 (0)