This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +65
-7
lines changed Expand file tree Collapse file tree 6 files changed +65
-7
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ const App = () => {
112
112
</ div >
113
113
< div className = "sidebar-footer" >
114
114
< a
115
- className = "button button-primary "
115
+ className = "button"
116
116
href = "https://discussions.topcoder.com/discussion/8870/new-beta-site-discuss?new=1"
117
117
target = "_blank"
118
118
>
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import { EMPTY_GIGS_TEXT } from "../../constants" ;
3
+ import Button from "../Button" ;
4
+ import "./styles.scss" ;
5
+
6
+ const Empty = ( ) => {
7
+ return (
8
+ < div styleName = "empty-wrapper" >
9
+ < div styleName = "empty-inner" >
10
+ < h6 > { EMPTY_GIGS_TEXT } </ h6 >
11
+ < span > Interested in getting a gig?</ span >
12
+ < Button
13
+ isPrimary
14
+ size = "lg"
15
+ onClick = { ( ) => {
16
+ window . location . href = `${ process . env . URL . BASE } /gigs` ;
17
+ } }
18
+ >
19
+ VIEW GIGS
20
+ </ Button >
21
+ </ div >
22
+ </ div >
23
+ ) ;
24
+ } ;
25
+
26
+ export default Empty ;
Original file line number Diff line number Diff line change
1
+ @import " styles/variables" ;
2
+ @import " styles/mixins" ;
3
+ @import " styles/animations" ;
4
+
5
+ .empty-wrapper {
6
+ width : 100% ;
7
+ border-radius : $border-radius-lg ;
8
+ background-color : #ffffff ;
9
+ padding : 81px 0px 330px 0px ;
10
+ min-width : 650px ;
11
+ .empty-inner {
12
+ display : flex ;
13
+ flex-direction : column ;
14
+ justify-content : center ;
15
+ align-items : center ;
16
+ & > h6 {
17
+ font-size : 20px ;
18
+ color : $tc-black ;
19
+ line-height : 24px ;
20
+ @include barlow-semibold ;
21
+ }
22
+ & > span {
23
+ font-size : 16px ;
24
+ color : $tc-black ;
25
+ line-height : 26px ;
26
+ margin-top : 30px ;
27
+ @include roboto-regular ;
28
+ }
29
+ & > button {
30
+ margin-top : 20px ;
31
+ letter-spacing : 0.8px ;
32
+ }
33
+ }
34
+ }
Original file line number Diff line number Diff line change 6
6
width : 100% ;
7
7
border-radius : $border-radius-lg ;
8
8
background-color : rgba (42 ,42 ,42 , 0.07 );
9
- padding : 232 px 0px ;
9
+ padding : 223 px 0px ;
10
10
.loading-inner {
11
11
display : flex ;
12
12
flex-direction : column ;
Original file line number Diff line number Diff line change @@ -351,6 +351,6 @@ export const GIG_STATUS_TOOLTIP = {
351
351
} ;
352
352
353
353
export const EMPTY_GIGS_TEXT =
354
- "Looks like you haven't applied to any gig opportunities yet ." ;
354
+ "LOOKS LIKE YOU HAVEN'T APPLIED TO ANY GIG OPPORTUNITIES YET ." ;
355
355
356
356
export const CHECKING_GIG_TIMES = 3 ;
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import { connect } from "react-redux";
5
5
import Modal from "../../components/Modal" ;
6
6
import Button from "../../components/Button" ;
7
7
import Loading from "../../components/Loading" ;
8
+ import Empty from "../../components/Empty" ;
8
9
import JobListing from "./JobListing" ;
9
10
import actions from "../../actions" ;
10
- import { EMPTY_GIGS_TEXT } from "../../constants" ;
11
11
import * as utils from "../../utils" ;
12
12
13
13
import UpdateGigProfile from "./modals/UpdateGigProfile" ;
@@ -98,9 +98,7 @@ const MyGigs = ({
98
98
</ Button >
99
99
</ div >
100
100
</ h1 >
101
- { ! checkingGigs && myGigs && myGigs . length == 0 && (
102
- < h3 styleName = "empty-label" > { EMPTY_GIGS_TEXT } </ h3 >
103
- ) }
101
+ { ! checkingGigs && myGigs && myGigs . length == 0 && < Empty /> }
104
102
{ ! checkingGigs && myGigs && myGigs . length > 0 && (
105
103
< JobListing
106
104
jobs = { myGigs }
You can’t perform that action at this time.
0 commit comments