fix: #479 - Toggle plugin is now experimental feature (#531)

This commit is contained in:
Louis 2023-11-02 19:57:36 +07:00 committed by GitHub
parent 8f9cc300b3
commit bbe1e618a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,16 +169,18 @@ const PluginCatalog = () => {
</Button> </Button>
)} )}
</div> </div>
<Switch {experimentalFeatureEnabed && (
checked={isActivePlugin} <Switch
onCheckedChange={(e) => { checked={isActivePlugin}
if (e === true) { onCheckedChange={(e) => {
downloadTarball(item.name) if (e === true) {
} else { downloadTarball(item.name)
uninstall(item.name) } else {
} uninstall(item.name)
}} }
/> }}
/>
)}
</div> </div>
) )
})} })}