File tree 6 files changed +24
-9
lines changed
src/shared/containers/timeline-wall
6 files changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import './styles.scss';
24
24
const FETCHING_PENDING_APPROVAL_EVENTS_INTERVAL = _ . get ( config , 'TIMELINE.FETCHING_PENDING_APPROVAL_EVENTS_INTERVAL' , 0 ) ;
25
25
const FORUM_LINK = _ . get ( config , 'TIMELINE.FORUM_LINK' , '' ) ;
26
26
function TimelineWallContainer ( props ) {
27
+ const currentTime = new Date ( ) ;
28
+ const thisYear = currentTime . getFullYear ( ) ;
27
29
const [ tab , setTab ] = useState ( 0 ) ;
28
30
const fetchingApprovalsInterval = useRef ( null ) ;
29
31
const [ showRightFilterMobile , setShowRightFilterMobile ] = useState ( false ) ;
@@ -223,7 +225,7 @@ function TimelineWallContainer(props) {
223
225
type = "button"
224
226
styleName = "filter-dropdown hide-desktop show-mobile"
225
227
>
226
- < span > { selectedFilterValue . year ? selectedFilterValue . year : '' } </ span >
228
+ < span > { selectedFilterValue . year ? selectedFilterValue . year : thisYear } </ span >
227
229
< IconCheveronDownBlue />
228
230
</ button >
229
231
</ div >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import PT from 'prop-types';
3
3
import { Modal } from 'topcoder-react-ui-kit' ;
4
4
import IconCloseGreen from 'assets/images/icon-close-green.svg' ;
5
5
import LoadingIndicator from 'components/LoadingIndicator' ;
6
+ import cn from 'classnames' ;
6
7
7
8
import style from './styles.scss' ;
8
9
@@ -17,14 +18,17 @@ function ModalEventAdd({
17
18
onCancel = { onClose }
18
19
>
19
20
< div styleName = "header" >
20
- < span styleName = "text-title" > Confirmation</ span >
21
+ < span styleName = "text-title" > { uploadResult ? 'Error' : ' Confirmation' } </ span >
21
22
< button styleName = "btn-close" onClick = { onClose } type = "button" > < IconCloseGreen /> </ button >
22
23
</ div >
23
24
{
24
25
uploading ? (
25
26
< LoadingIndicator />
26
27
) : (
27
- < span styleName = "text-description" >
28
+ < span styleName = { cn ( 'text-description' , {
29
+ error : ! ! uploadResult ,
30
+ } ) }
31
+ >
28
32
{
29
33
uploadResult || successMessage
30
34
}
Original file line number Diff line number Diff line change 44
44
strong {
45
45
@include roboto-bold ;
46
46
}
47
+
48
+ & .error {
49
+ color : #ef476f ;
50
+ }
47
51
}
48
52
49
53
.separator {
Original file line number Diff line number Diff line change 86
86
border : none ;
87
87
color : white ;
88
88
89
+ & :visited ,
89
90
& :hover {
90
91
color : white ;
91
92
}
Original file line number Diff line number Diff line change 3
3
.container {
4
4
display : flex ;
5
5
flex-direction : column ;
6
+ z-index : 1 ;
6
7
7
8
@media (max-width : 768px ) {
8
9
position : fixed ;
53
54
border-top-left-radius : 8px ;
54
55
border-bottom-left-radius : 8px ;
55
56
padding : 10px 0 ;
56
- position : fixed ;
57
- right : 0 ;
58
- left : 1374 px ;
57
+ position : sticky ;
58
+ margin-bottom : 80 px ;
59
+ top : 0 ;
59
60
max-height : 70% ;
60
61
overflow : scroll ;
61
- -ms-overflow-style : none ; /* Internet Explorer 10+ */
62
- scrollbar-width : none ; /* Firefox */
62
+ -ms-overflow-style : none ; /* Internet Explorer 10+ */
63
+ scrollbar-width : none ; /* Firefox */
63
64
64
65
& ::-webkit-scrollbar {
65
- display : none ; /* Safari and Chrome */
66
+ display : none ; /* Safari and Chrome */
66
67
}
67
68
68
69
@media (max-width : 1500px ) {
72
73
@media (max-width : 768px ) {
73
74
border-radius : 0 ;
74
75
width : calc (100% - 10px );
76
+ position : relative ;
77
+ margin-bottom : unset ;
75
78
}
76
79
77
80
span {
Original file line number Diff line number Diff line change 4
4
display : flex ;
5
5
flex-direction : row ;
6
6
justify-content : space-between ;
7
+ max-width : 1492px ;
7
8
}
8
9
9
10
.left-content {
You can’t perform that action at this time.
0 commit comments