Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/components/Layout/__stand__/Layout.use.stand.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const tiles: TileMenuListDefaultItem[] = [
{
label: 'Портал',
description: 'Сводная информация обо мне и подразделении, новости компании',
image: 'https://avatars.githubusercontent.com/u/13190808?v=4',
},
...
];
Expand All @@ -44,7 +43,6 @@ const notifications: NotificationsListDefaultItem[] = [
{
label: 'Иванов Иван Иванович',
description: 'Добавил файлы в проект, план/факт по расчету предварительные',
image: 'https://avatars.githubusercontent.com/u/13190808?v=4',
date: new Date(2021, 10, 12, 13, 57, 0),
read: false,
badges: [
Expand Down Expand Up @@ -193,7 +191,6 @@ const RowCenterRight = () => (
<TileMenu items={tiles} />
<User
className={cnMixSpace({ mL: 'xs' })}
avatarUrl="https://avatars.githubusercontent.com/u/13190808?v=4"
name="Имя Фамилия"
info="Доп. информация"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export const items: NotificationsDefaultItem[] = [
{
label: 'Иванов Иван Иванович',
description: 'Добавил файлы в проект, план/факт по расчету предварительные',
image: 'https://avatars.githubusercontent.com/u/13190808?v=4',
date: new Date(2021, 10, 12, 13, 57, 0),
read: false,
badges: [
Expand Down Expand Up @@ -143,12 +142,10 @@ const itemsBasic: NotificationsListDefaultItem[] = [
{
label: 'Один человек',
description: 'Принёс краску',
image: 'https://avatars.githubusercontent.com/u/13190808?v=4',
},
{
label: 'Другой человек',
description: 'Покрасил забор',
image: 'https://avatars.githubusercontent.com/u/12581569?s=40&v=4',
},
];

Expand Down Expand Up @@ -194,12 +191,10 @@ const itemsBasic: NotificationsListDefaultItem[] = [
{
label: 'Один человек',
description: 'Принёс краску',
image: 'https://avatars.githubusercontent.com/u/13190808?v=4',
},
{
label: 'Другой человек',
description: 'Покрасил забор',
image: 'https://avatars.githubusercontent.com/u/12581569?s=40&v=4',
},
];

Expand Down Expand Up @@ -245,25 +240,21 @@ const itemsDate: NotificationsListDefaultItem[] = [
{
label: 'Первое уведомление',
description: 'Привет, мир',
image: 'https://avatars.githubusercontent.com/u/13190808?v=4',
date: new Date(2021, 10, 12, 13, 57, 0),
},
{
label: 'Второе уведомление',
description: 'Пока-пока',
image: 'https://avatars.githubusercontent.com/u/12581569?s=40&v=4',
date: new Date(2021, 10, 12, 13, 57, 0),
},
{
label: 'Третее уведомление',
description: 'Пока-пока',
image: 'https://avatars.githubusercontent.com/u/12581569?s=40&v=4',
date: new Date(),
},
{
label: 'Четвёртое уведомление',
description: 'Пока-пока',
image: 'https://avatars.githubusercontent.com/u/12581569?s=40&v=4',
date: new Date(),
},
];
Expand Down Expand Up @@ -310,25 +301,21 @@ const itemsGroups: NotificationsListDefaultItem[] = [
{
label: 'Первое уведомление',
description: 'Привет, мир',
image: 'https://avatars.githubusercontent.com/u/13190808?v=4',
group: 'important',
},
{
label: 'Второе уведомление',
description: 'Пока-пока',
image: 'https://avatars.githubusercontent.com/u/12581569?s=40&v=4',
group: 'not',
},
{
label: 'Третее уведомление',
description: 'Пока-пока',
image: 'https://avatars.githubusercontent.com/u/12581569?s=40&v=4',
group: 'not',
},
{
label: 'Четвёртое уведомление',
description: 'Пока-пока',
image: 'https://avatars.githubusercontent.com/u/12581569?s=40&v=4',
group: 'important',
},
];
Expand Down Expand Up @@ -511,12 +498,7 @@ const date = new Date(2021, 10, 12, 13, 57, 0);

export const NotificationsItemExampleBasic = () => {
return (
<NotificationsItem
title="Заголовок"
date={date}
description="Описание"
imageUrl="https://avatars.githubusercontent.com/u/12581569?s=40&v=4"
/>
<NotificationsItem title="Заголовок" date={date} description="Описание" />
);
};
```
Expand All @@ -538,7 +520,6 @@ export const NotificationsItemExampleBadges = () => (
<NotificationsItem
title="Один человек"
description="Принёс краску"
imageUrl="https://avatars.githubusercontent.com/u/13190808?v=4"
badges={[
{
label: 'готов к работе',
Expand Down Expand Up @@ -603,7 +584,6 @@ export const NotificationsItemExampleAction = () => {
<NotificationsItem
title="Иванов Иван Иванович"
description="Принёс краску"
imageUrl="https://avatars.githubusercontent.com/u/12581569?s=40&v=4"
actions={[
{
label: 'Удалить',
Expand Down
12 changes: 1 addition & 11 deletions src/components/TileMenu/__stand__/TileMenu.dev.stand.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ import { TileMenu } from '@consta/header/TileMenu';
import { TileMenuItem } from '@consta/header/TileMenu';

export const TileMenuItemExampleBasic = () => {
return (
<TileMenuItem
title="Пункт меню"
description="Описание пункта меню"
image="https://avatars.githubusercontent.com/u/12581569?s=40&v=4"
/>
);
return <TileMenuItem title="Пункт меню" description="Описание пункта меню" />;
};
```

Expand All @@ -72,13 +66,11 @@ export const TileMenuItemExampleBasic = () => {
<TileMenuItem
title="Пункт меню"
description="Описание пункта меню"
image="https://avatars.githubusercontent.com/u/12581569?s=40&v=4"
view="default"
/>
<TileMenuItem
title="Пункт меню"
description="Описание пункта меню"
image="https://avatars.githubusercontent.com/u/12581569?s=40&v=4"
view="card"
/>
</>
Expand Down Expand Up @@ -116,7 +108,6 @@ const items: TileMenuListDefaultItem[] = [
{
title: 'Портал',
description: 'Сводная информация обо мне и подразделении, новости компании',
image: 'https://avatars.githubusercontent.com/u/13190808?v=4',
},
// и так далее
];
Expand Down Expand Up @@ -229,7 +220,6 @@ const items: TileMenuListDefaultItem[] = [
{
title: 'Портал',
description: 'Сводная информация обо мне и подразделении, новости компании',
image: 'https://avatars.githubusercontent.com/u/13190808?v=4',
},
// и так далее
];
Expand Down