-
-
Notifications
You must be signed in to change notification settings - Fork 273
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(suite): redesign FW checks UI #16599
Conversation
66e82b0
to
8363b05
Compare
packages/suite/src/views/onboarding/steps/SecurityCheck/SecurityChecklist.tsx
Show resolved
Hide resolved
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.
LFTM, details on slack
> | ||
{items.map((item, index) => ( | ||
<Row key={index} gap={spacings.xl}> | ||
{item.icon} |
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.
Okay, this caused problem and TS check didn't see it for some reason. In SecurityCheck
there is checklistItems
varaible, where icon
is string
. That's likely the reason. Coz string
is a ReactNode
.
Before, string
was kinda correct here as it was the IconName
.
<Icon size={24} name={item.icon} color={theme.legacy.TYPE_DARK_GREY} />
My proposal: enforce the Icon
element here. I am not sure how to do it correctly. I can check if <Icon />
is its own Component type and require just it, or to remove string
from the ReactNode
type here.
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 am figuring out proper fix here: #16709
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.
Oops, I missed all those checklist definitions 🤦
Yeah, exclude string
from ReactNode
could work, but would need comment to explain why...
EDIT: ReactElement
is more suitable..
Description
warning
other-error
has color:warning
Related Issue
Resolve #16407
Screenshots:
👻 modals
hash-mismatch
other-error
revision check
Banners
hash-mismatch
other-error
revision check