From 40380990f977e35ab43d25e3008ac88ab3b86552 Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Thu, 17 Oct 2024 15:48:55 +0900 Subject: [PATCH] fix: Add test --- src/components/Playground.jsx | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/components/Playground.jsx b/src/components/Playground.jsx index 6393158d..3bdb7ccb 100644 --- a/src/components/Playground.jsx +++ b/src/components/Playground.jsx @@ -30,7 +30,7 @@ export default function Playground() { const fileRef = useRef(null) const queryRef = useRef(null) const [zoom, setZoom] = useState(20) - const { get, promisePost } = useAxios() + const { get, promiseGet, promisePost } = useAxios() const testVar = process.env.NEXT_PUBLIC_TEST const converterUrl = process.env.NEXT_PUBLIC_CONVERTER_API_URL const { getMessage } = useMessage() @@ -43,6 +43,8 @@ export default function Playground() { const [checkboxInput, setCheckboxInput] = useState([]) const [selectedValue, setSelectedValue] = useState('') + const [users, setUsers] = useState([]) + useEffect(() => { console.log('textInput:', textInput) }, [textInput]) @@ -142,6 +144,10 @@ export default function Playground() { }, } + useEffect(() => { + console.log('users:', users) + }, [users]) + return ( <>
@@ -305,6 +311,32 @@ export default function Playground() {
+
+ +
+
+ +
)