Skip to content

Commit da0304e

Browse files
author
berdysheva
committed
fix: add variable icon size
1 parent bc3705d commit da0304e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/components/navigation/components/Header/Header.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import './Header.scss';
1616

1717
const b = block('header');
1818

19+
const ICON_SIZE = 36;
20+
1921
export interface HeaderProps {
2022
logo: NavigationLogo;
2123
data: HeaderData;
@@ -30,7 +32,10 @@ const MobileMenuButton: React.FC<MobileMenuButtonProps> = ({
3032
isSidebarOpened,
3133
onSidebarOpenedChange,
3234
}) => {
33-
const iconProps = {icon: isSidebarOpened ? NavigationClose : NavigationOpen, iconSize: 36};
35+
const iconProps = {
36+
icon: isSidebarOpened ? NavigationClose : NavigationOpen,
37+
iconSize: ICON_SIZE,
38+
};
3439

3540
return (
3641
<Control

src/demo/DocsWithReadme.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ export const DocsWithReadme = () => {
4343
if (dirPath) {
4444
sourceBadgeContent = (
4545
<a
46-
href={`https://github.com/gravity-ui/page-constructor/browse/browse/${dirPath}`}
46+
href={`https://github.com/gravity-ui/page-constructor/tree/main/${dirPath}`}
4747
target="_blank"
4848
rel="noopener noreferrer"
4949
>
50-
<img src="https://badger.yandex-team.ru/custom/[Source]/[Bitbucket][green]/badge.svg" />
50+
<img src="https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/icons/github-badge.svg" />
5151
</a>
5252
);
5353
}

0 commit comments

Comments
 (0)