1+ import { useState , useRef , useEffect , memo , RefObject } from "react"
2+ import { useRouter } from "next/router"
13import { Animate } from "react-simple-animate"
24import { useForm } from "react-hook-form"
35import SortableContainer from "./SortableContainer"
@@ -16,10 +18,8 @@ import containerStyles from "../styles/container.module.css"
1618import typographyStyles from "../styles/typography.module.css"
1719import CodeArea from "./CodeArea"
1820import ClipBoard from "./ClipBoard"
19- import { useState , useRef , useEffect , memo , RefObject } from "react"
2021import styles from "./BuilderPage.module.css"
2122import { BeekaiBuilderPage } from "./BeekaiBuilderPage"
22- import { useRouter } from "next/router"
2323
2424const errorStyle = {
2525 border : `1px solid ${ colors . secondary } ` ,
@@ -110,15 +110,15 @@ function BuilderPage({
110110
111111 useEffect ( ( ) => {
112112 setValue ( "toggle" , shouldToggleOn )
113- } , [ shouldToggleOn ] )
113+ } , [ setValue , shouldToggleOn ] )
114114
115115 useEffect ( ( ) => {
116116 if ( editFormData . type ) setValue ( "type" , editFormData . type )
117- } , [ editFormData . type ] )
117+ } , [ editFormData . type , setValue ] )
118118
119119 useEffect ( ( ) => {
120120 setValue ( "required" , editFormData . required )
121- } , [ editIndex ] )
121+ } , [ editFormData . required , editIndex , setValue ] )
122122
123123 const child = (
124124 < div className = { containerStyles . container } >
0 commit comments