feat(frontend): add size="small" to ModalField input to improve UI consistency

feat(frontend): add save function to TabsContext to enable saving of changes made to tabs
fix(frontend): add save function to TabsContext in ParameterComponent to enable saving of changes made to tabs
This commit is contained in:
anovazzi1 2023-06-23 17:29:26 -03:00
commit 49bbb41e98
2 changed files with 2 additions and 1 deletions

View file

@ -41,7 +41,7 @@ export default function ParameterComponent({
const updateNodeInternals = useUpdateNodeInternals();
const [position, setPosition] = useState(0);
const { closePopUp } = useContext(PopUpContext);
const { setTabsState, tabId } = useContext(TabsContext);
const { setTabsState, tabId, save } = useContext(TabsContext);
useEffect(() => {
if (ref.current && ref.current.offsetTop && ref.current.clientHeight) {

View file

@ -101,6 +101,7 @@ export default function ModalField({
data.node.template[name].value = t;
setEnabled(t);
}}
size="small"
/>
</div>
) : type === "float" ? (