-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat(hycu): add link to manage contacts #14263
base: master
Are you sure you want to change the base?
Conversation
ref: MANAGER-15782 Signed-off-by: Paul Dickerson <[email protected]>
Quality Gate passedIssues Measures |
{isLoadingContactUrl ? ( | ||
<OsdsSkeleton /> | ||
) : ( | ||
<Links | ||
href={(contactUrl as string) ?? '#'} | ||
type={LinkType.next} | ||
label={t('hycu_dashboard_field_label_manage_contacts')} | ||
className="mt-4" | ||
/> | ||
)} |
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.
Just little suggestion with a question :
When I implemented this I use disabled because the content not change and the load is very fast (Is not a web request just a local async function)
So I find this more readable, more maintainable and have better UX / CLS
What do you think ?
But is good implementation too
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.
+1 good idea
Array.from({ length: 3 }).map((_, index) => ( | ||
<OsdsSkeleton key={index} /> | ||
)) |
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.
Array.from({ length: 3 }).map((_, index) => ( | |
<OsdsSkeleton key={index} /> | |
)) | |
<> | |
<OsdsSkeleton /> | |
<OsdsSkeleton /> | |
<OsdsSkeleton /> | |
</> | |
) |
No need to re-calculate a list of static components on each render I think
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.
I think the loop is better to maintain the code and avoid repetition. Maybe another opinion to known what method to choose ?
ref: MANAGER-15782
master
Description
Related