diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 9ff2bf1..8ba2b51 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,10 +1,11 @@ import { useEffect, useReducer } from 'react'; -import { Component, ComponentLabel } from './components/component'; import { ButtonComponent } from './components/ButtonComponent'; import { NumberComponent } from './components/NumberComponent'; import { SliderComponent } from './components/SliderComponent'; import { EnumComponent } from './components/EnumComponent'; import { socket } from './socket'; +import { MethodComponent } from './components/MethodComponent'; +import { AsyncMethodComponent } from './components/AsyncMethodComponent'; type AttributeType = | 'str' @@ -183,20 +184,31 @@ const App = () => { /> ); - } else if (!value.async) { - return ( -
- - -
- ); + } else if (value.type === 'method') { + if (!value.async) { + return ( +
+ +
+ ); + } else { + return ( +
+ } + /> +
+ ); + } } else { return
; }