refactor(web): make Switch controlled-only and migrate call sites (#32399)

This commit is contained in:
yyh
2026-02-18 23:47:07 +08:00
committed by GitHub
parent 368db04519
commit ea0e1b52a8
58 changed files with 182 additions and 223 deletions

View File

@ -21,7 +21,7 @@ const FilterSwitch: FC<FilterSwitchProps> = ({
{t('versionHistory.filter.onlyShowNamedVersions', { ns: 'workflow' })}
</div>
<Switch
defaultValue={enabled}
value={enabled}
onChange={v => handleSwitch(v)}
size="md"
className="shrink-0"