feat(ui): refactor controlnet UI components to use local memoized selectors

makes them more portable and easier to reason about
This commit is contained in:
psychedelicious
2023-07-15 17:40:40 +10:00
parent d270f21c85
commit 8f66d826a5
10 changed files with 200 additions and 109 deletions

View File

@ -55,7 +55,7 @@ const ParamControlNetCollapse = () => {
{controlNetsArray.map((c, i) => (
<Fragment key={c.controlNetId}>
{i > 0 && <Divider />}
<ControlNet controlNet={c} />
<ControlNet controlNetId={c.controlNetId} />
</Fragment>
))}
<IAIButton flexGrow={1} onClick={handleClickedAddControlNet}>