-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ref(js): RuleListRow -> React.FC #29726
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
ref(js): RuleListRow -> React.FC #29726
Conversation
matejminar
left a comment
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.
The conversion looks good.
Left a couple of optional suggestions while we are touching this file.
| </FlexCenter> | ||
|
|
||
| <FlexCenter> | ||
| {teamActor ? <ActorAvatar actor={teamActor} size={24} /> : '-'} |
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.
We could use em dash / NotAvailable component.
| }} | ||
| size="small" | ||
| type="button" | ||
| aria-label={t('Show more')} |
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.
| aria-label={t('Show more')} | |
| label={t('Show more')} |
| <Tooltip title={t('Edit')}> | ||
| <Button | ||
| size="small" |
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.
We could use the title prop on the button.
Also, let's add a label prop.
| <Button | ||
| type="button" | ||
| icon={<IconDelete />} | ||
| size="small" | ||
| title={t('Delete')} | ||
| /> |
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.
Should we set the label prop so that this button is a bit more accessible?
|
I'll go back and clean these up @matejminar. Thanks! |
No description provided.