stephenLYZ commented on code in PR #20363:
URL: https://github.com/apache/superset/pull/20363#discussion_r896532411


##########
superset-frontend/src/views/components/MenuRight.tsx:
##########
@@ -439,4 +438,38 @@ const RightMenu = ({
   );
 };
 
-export default RightMenu;
+const RightMenuWithQueryWrapper: React.FC<RightMenuProps> = props => {
+  const [, setQuery] = useQueryParams({
+    databaseAdded: BooleanParam,
+  });
+
+  return <RightMenu setQuery={setQuery} {...props} />;
+};
+
+class RightMenuErrorWrapper extends React.PureComponent<RightMenuProps> {

Review Comment:
   Can we add some comments here? Others may be curious as to why an additional 
error wrapper is needed.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to