Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit f5310d6

Browse files
author
dengjun
committed
add view gigs button
1 parent e182540 commit f5310d6

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

src/containers/MyGigs/index.jsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,21 @@ const MyGigs = ({
7777
<div styleName="page">
7878
<h1 styleName="title">
7979
<span styleName="text">MY GIGS</span>
80-
<Button
81-
isPrimary
82-
size="lg"
83-
disabled={!(profile && profile.hasProfile)}
84-
onClick={() => {
85-
setOpenUpdateProfile(true);
86-
}}
87-
>
88-
UPDATE GIG WORK PROFILE
89-
</Button>
80+
<div styleName="operation">
81+
<Button size="lg" onClick={() => {
82+
window.location.href = `${process.env.URL.BASE}/gigs`
83+
}}>VIEW GIGS</Button>
84+
<Button
85+
isPrimary
86+
size="lg"
87+
disabled={!(profile && profile.hasProfile)}
88+
onClick={() => {
89+
setOpenUpdateProfile(true);
90+
}}
91+
>
92+
UPDATE GIG WORK PROFILE
93+
</Button>
94+
</div>
9095
</h1>
9196
{!checkingGigs && myGigs && myGigs.length == 0 && (
9297
<h3 styleName="empty-label">{EMPTY_GIGS_TEXT}</h3>

src/containers/MyGigs/styles.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
display: flex;
1212
align-items: center;
1313
margin-bottom: 22px;
14+
justify-content: space-between;
1415

1516
.text {
1617
align-self: flex-start;
1718
}
1819

19-
button {
20-
margin-left: auto;
20+
.operation {
21+
width: 375px;
22+
display: flex;
23+
justify-content: space-between;
2124
}
2225
}
2326

0 commit comments

Comments
 (0)