Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tjiang-box
Copy link
Contributor

No description provided.

@tjiang-box tjiang-box requested review from a team as code owners February 28, 2025 21:12
import messages from '../messages';

export interface AddProps {
isDisabled: boolean;
Copy link
Contributor Author

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)}
Copy link
Contributor Author

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;
Copy link
Contributor Author

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

import { VIEW_FOLDER, VIEW_MODE_GRID } from '../../../../constants';

describe('elements/common/sub-header/SubHeaderRight', () => {
describe('elements/common/sub-header/SubHeaderRight', () => {
Copy link
Contributor

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?

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants