Skip to content

Commit

Permalink
fix/ create team3
Browse files Browse the repository at this point in the history
  • Loading branch information
k0t1k777 committed Aug 18, 2024
1 parent 6fe11f3 commit 18b4680
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
26 changes: 20 additions & 6 deletions src/pages/Profile/Profile.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DeleteOutlined, EditOutlined } from '@ant-design/icons';
import styles from 'src/pages/Profile/Profile.module.scss';
import { CHARTS_DATA, EVENTS_DATA } from 'src/services/const';
import { EVENTS_DATA } from 'src/services/const';
import { useAppDispatch, useAppSelector } from 'src/store/hooks';
import { selectMembers } from 'src/store/features/slice/membersSlice';
import cn from 'classnames/bind';
Expand Down Expand Up @@ -62,16 +62,30 @@ export default function Profile() {
[styles.containerCharts_row]: !shortWindow,
})}
>
{CHARTS_DATA.map((item, index) => (
<li className={styles.item} key={index}>
<p className={styles.text}>{item.text}</p>
<li className={styles.item}>
<p className={styles.text}>Загруженность 87 %</p>
<img
className={styles.chart}
src={item.img}
src='src/assets/images/diagram1.png'
alt='иконка диаграммы'
/>
</li>
<li className={styles.item}>
<p className={styles.text}>Следующий грейд 44 %</p>
<img
className={styles.chart}
src='src/assets/images/diagram2.png'
alt='иконка диаграммы'
/>
</li>
<li className={styles.item}>
<p className={styles.text}>Эффективность 65 %</p>
<img
className={styles.chart}
src='src/assets/images/diagram3.png'
alt='иконка диаграммы'
/>
</li>
))}
</ul>
<div className={styles.eventsContainer}>
{EVENTS_DATA.map((cont, index) => (
Expand Down
15 changes: 0 additions & 15 deletions src/services/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@ export const inintialTeam = {
id: '',
}

export const CHARTS_DATA = [
{
text: 'Загруженность 87 %',
img: './assets/images/diagram1.png'
},
{
text: 'Следующий грейд 44 %',
img: './assets/images/diagram2.png'
},
{
text: 'Эффективность 65 %',
img: './assets/images/diagram3.png'
}
]

export const EVENTS_DATA = [
{
title: 'Обучения',
Expand Down

0 comments on commit 18b4680

Please sign in to comment.