-
Notifications
You must be signed in to change notification settings - Fork 318
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(content-explorer): migrate subHeader to typescript #3999
base: master
Are you sure you want to change the base?
Conversation
import messages from '../messages'; | ||
|
||
export interface AddProps { | ||
isDisabled: boolean; |
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.
Added missing prop 'isDisabled'. related to this comment
<DropdownMenu.Root> | ||
<DropdownMenu.Trigger> | ||
<IconButton | ||
aria-label={formatMessage(messages.add)} |
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.
update aria-label to use formatMessage() to resolve this comment
import messages from '../messages'; | ||
|
||
export interface SortProps { | ||
onSortChange: (sortBy: SortBy, sortDirection: SortDirection) => void; |
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.
removed sortBy and sortDirection props which were used for isSelected
variable. BP's dropdown menu doesn't have isSelected prop and even with buie's dropdown menu, isSelected doesn't show any special UI change
aa52298
to
afc5eda
Compare
import { VIEW_FOLDER, VIEW_MODE_GRID } from '../../../../constants'; | ||
|
||
describe('elements/common/sub-header/SubHeaderRight', () => { | ||
describe('elements/common/sub-header/SubHeaderRight', () => { |
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.
am I reading this correctly, this is a duplicate right?
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.
oh good catch! let me fix this
No description provided.