File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/screens/hours/components/HoursCard Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1- import React , { useEffect , useMemo } from 'react' ;
1+ import React , { useMemo } from 'react' ;
22import { Card } from 'antd' ;
33import format from 'date-fns/format' ;
44import { observer } from 'mobx-react' ;
@@ -36,7 +36,13 @@ export default observer(function HoursCard({
3636 : '' ;
3737
3838 return (
39- < Card className = "hours-card" onClick = { ( ) => onClick ( taskTime ) } >
39+ < Card
40+ className = "hours-card"
41+ onClick = { ( ) => onClick ( taskTime ) }
42+ style = {
43+ project ?. color ? { borderLeft : `4px solid ${ project ?. color } ` } : { }
44+ }
45+ >
4046 < div className = "hours-card__info" >
4147 < div className = "project-title" > { project ?. title } </ div >
4248 < div className = "task-title" > { task . title } </ div >
You can’t perform that action at this time.
0 commit comments