Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit faa5711

Browse files
author
Dmitry Yadrikhinsky
committed
Project tile
1 parent 4216abf commit faa5711

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.drawer-task {
22
width: 100%;
33

4-
.duration {
4+
.icon-with-value {
55
display: flex;
66
flex-direction: row;
77
align-items: center;
8-
}
98

10-
.duration-value {
11-
padding-left: 5px;
9+
.value {
10+
padding-left: 5px;
11+
}
1212
}
1313
}

src/screens/projects/components/DrawerTask/DrawerTask.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useMemo } from 'react';
22
import { Checkbox, Drawer, Input, Space } from 'antd';
33
import { observer } from 'mobx-react';
4-
import { ClockCircleOutlined } from '@ant-design/icons';
4+
import { ClockCircleOutlined, ProjectOutlined } from '@ant-design/icons';
55

66
import './DrawerTask.less';
77

@@ -48,7 +48,12 @@ export default observer(function DrawerTask({
4848
>
4949
Mark as done
5050
</Checkbox>
51-
<div>Project: {project?.title}</div>
51+
<div className="icon-with-value">
52+
<IconTile backgroundColor="#713A91">
53+
<ProjectOutlined style={{ color: 'white ' }} />
54+
</IconTile>
55+
<span className="value">{project?.title}</span>
56+
</div>
5257
<Input
5358
value={task?.title}
5459
onChange={(e) => {
@@ -68,11 +73,11 @@ export default observer(function DrawerTask({
6873
}
6974
}}
7075
/>
71-
<div className="duration">
76+
<div className="icon-with-value">
7277
<IconTile backgroundColor="#713A91">
7378
<ClockCircleOutlined style={{ color: 'white ' }} />
7479
</IconTile>
75-
<span className="duration-value">{duration}</span>
80+
<span className="value">{duration}</span>
7681
</div>
7782

7883
<HoursByTask task={task} />

0 commit comments

Comments
 (0)