Skip to content

Conversation

@yuberdysheva
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

export {default as Header} from './navigation/components/Header/Header';
export * as Navigation from './navigation/components/index';

export * from './navigation/components/index';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to export all navigation items from this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix

const b = block('logo');

export interface LogoProps extends NavigationLogo {
export interface LogoProps extends NavigationLogoProps {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the difference between LogoProps and NavigationLogoProps, it adds a little mess

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LogoProps has className, rename NavigationLogoProps to NavigationLogoData

logo: NavigationLogo;
data: HeaderData;
logo: NavigationLogoProps;
data: HeaderDataProps;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually we use props in naming for react components props. Try to use another naming

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returned previous naming

import {
NavigationItem as NavigationItemModel,
NavigationDropdownItem,
NavigationItemProps as NavigationItemModel,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

import {
NavigationDropdownItem,
NavigationItem as NavigationItemModel,
NavigationDropdownItemProps,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

}

export interface NavigationLinkItem extends NavigationItemBase {
export interface NavigationLinkItemProps extends NavigationItemBaseProps {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try not to use props here - there are models for navigation data in config

@yuberdysheva yuberdysheva merged commit 53ea8d4 into main Dec 7, 2022
@yuberdysheva yuberdysheva deleted the yuberdysheva/navigation-fix branch December 7, 2022 08:20
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.

4 participants