-
Notifications
You must be signed in to change notification settings - Fork 52
fix: Reset layout after click on Navigation item #3726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
{resources ? ( | ||
<ResourceListRenderer | ||
resources={(resources || []).filter(filterFn)} | ||
{...allProps} | ||
/> | ||
) : ( | ||
<Resources {...allProps} /> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This couldn't be removed when you create an extension with some filter function, so it won't work. Now you are just taking this prop, pass, and don't make anything with it.
src/sidebar/NavItem.tsx
Outdated
@@ -65,6 +65,7 @@ export function NavItem({ node, subItem = false }: NavItemProps) { | |||
|
|||
const handleNavigation = (isNavigatingForward?: boolean) => { | |||
if (node.dataSources) { | |||
const [jsonataLink, jsonataError] = jsonata(node.externalUrl || ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New changes are detected. LGTM label has been removed. |
import { useParams } from 'react-router-dom'; | ||
import EventDetails from 'resources/Events/EventDetails'; | ||
|
||
export const ClusterEventDetails = props => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you not use props
, and add proper properties that we need? resourceName
etc
import { useParams } from 'react-router-dom'; | ||
import { EventsList } from 'shared/components/EventsList'; | ||
|
||
export const ClusterEventList = props => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Description
Changes proposed in this pull request:
Related issue(s)
#3534
Definition of done
backlog#4567