-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Added skeleton loader on page load #3740
Conversation
packages/twenty-front/src/modules/ui/layout/page/PageHeader.tsx
Outdated
Show resolved
Hide resolved
Passing down a new If we properly handle the concatenation of I propose the following declaration of pageName, that we remove the use of the const pageName =
objectNameSingular === 'person'
? record?.name.firstName || record?.name.firstName
? (
(record?.name.firstName ?? '') +
' ' +
(record?.name.lastName ?? '')
).trim()
: null
: record?.name; And if you don't think that code is as legible, you could additionally pull out the name concatenation into its own function. Reader be aware that I am not a regular contributor (yet). So take my advice as you would like. |
Thank you @la-flor for your valuable review. @lucasbordeau, I'd like to hear your thoughts on whether I should use "loading" or "title" as the checker. |
@jeet1desai That's perfect now, thank you ! @la-flor I think we shouldn't try to guess it here for multiple reasons :
|
Fix: #3722
Dark
Light