Wcdaren commented on code in PR #2506:
URL: https://github.com/apache/apisix-dashboard/pull/2506#discussion_r917517922
##########
web/src/components/Plugin/data.tsx:
##########
@@ -74,6 +74,15 @@ export enum PluginType {
other = 'other',
}
+export enum PluginState {
+ disable = 10,
+ enable = 20,
+}
+
+export interface PluginItem extends PluginComponent.Meta {
+ state?: PluginState;
+}
Review Comment:
The real code cannot be called if it is placed in the type file, it is
written here to make it easier for the code in JSX to use
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]