@@ -14,7 +14,7 @@ import { Button } from '@/components/ui/button'
14
14
import { Label } from '@/components/ui/label'
15
15
import { Separator } from '@/components/ui/separator'
16
16
import { useToast } from '@/hooks/use-toast'
17
- import KnowledegeBaseTabs from './_components/KnowledegeBaseTabs/KnowledegeBaseTabs '
17
+ import KnowledegeBaseTabs from './_components/KnowledegeBaseTabs'
18
18
19
19
const UpdateSchema = z
20
20
. object ( {
@@ -56,7 +56,6 @@ export default function KnowledgeBase() {
56
56
const { toast } = useToast ( )
57
57
58
58
const [ buttonDisabled , setButtonDisabled ] = useState ( true )
59
- // Add credentials
60
59
const {
61
60
mutate,
62
61
isPending : botPending ,
@@ -73,7 +72,7 @@ export default function KnowledgeBase() {
73
72
setButtonDisabled ( true )
74
73
} ,
75
74
} )
76
- // ...............................
75
+
77
76
const {
78
77
register,
79
78
handleSubmit,
@@ -87,7 +86,6 @@ export default function KnowledgeBase() {
87
86
const { user } = useTokenStore ( )
88
87
const { data } = useSession ( )
89
88
90
- // get Credential
91
89
const getData = async ( ) => {
92
90
let res = await GetOpenAIData ( )
93
91
if ( res ?. bot ?. [ 0 ] ) {
@@ -123,7 +121,6 @@ export default function KnowledgeBase() {
123
121
onSubmit = { handleSubmit ( handleClick ) }
124
122
className = 'flex flex-col gap-4 p-6'
125
123
>
126
- { /* First Row */ }
127
124
< div className = 'flex flex-col gap-4 md:flex-row' >
128
125
< div className = 'flex w-full flex-col space-y-2' >
129
126
< Label className = 'flex items-center gap-2 text-dashboardText' >
@@ -161,7 +158,6 @@ export default function KnowledgeBase() {
161
158
</ Button >
162
159
</ div >
163
160
164
- { /* Second Row */ }
165
161
< div className = 'flex flex-col gap-4' >
166
162
< div className = 'flex flex-col gap-4 md:flex-row' >
167
163
< div className = 'flex w-full flex-col space-y-2' >
@@ -228,7 +224,6 @@ export default function KnowledgeBase() {
228
224
</ div >
229
225
</ div >
230
226
231
- { /* Third Row */ }
232
227
< div className = 'flex flex-col gap-4' >
233
228
< div className = 'flex flex-col gap-4 md:flex-row' >
234
229
< div className = 'flex w-full flex-col space-y-2' >
0 commit comments