Skip to content

Commit a663404

Browse files
Merge pull request #5525 from topcoder-platform/develop
Release v1.9.3
2 parents 9e78fad + fa8c07b commit a663404

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

src/shared/components/Contentful/Tabs/Tabs.jsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ export default class TabsItemsLoader extends Component {
5252
const q = getQuery();
5353
const { tabId } = this.props;
5454
const { tabIndex } = this.state;
55-
if (q.tabs && q.tabs[tabId] && Number(q.tabs[tabId]) !== tabIndex) {
56-
this.setState({ tabIndex: Number(q.tabs[tabId]) });
57-
} else {
58-
this.updatePageUrl();
55+
if (q.tracks && q.tracks[tabId] && Number(q.tracks[tabId]) !== tabIndex) {
56+
this.setState({ tabIndex: Number(q.tracks[tabId]) });
5957
}
6058
}
6159

@@ -64,14 +62,16 @@ export default class TabsItemsLoader extends Component {
6462
}
6563

6664
updatePageUrl() {
67-
const q = getQuery();
68-
const { tabId } = this.props;
69-
const { tabIndex } = this.state;
70-
updateQuery({
71-
tabs: {
72-
...q.tabs,
73-
[tabId]: tabIndex || 0,
74-
},
65+
this.setState((state) => {
66+
const q = getQuery();
67+
const { tabId } = this.props;
68+
const { tabIndex } = state;
69+
updateQuery({
70+
tabs: {
71+
...q.tracks,
72+
[tabId]: tabIndex || 0,
73+
},
74+
});
7575
});
7676
}
7777

src/shared/components/Gigs/GigDetails/style.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
@include xs-to-sm {
2323
margin-bottom: 20px;
24+
margin-right: 0;
2425
}
2526
}
2627

@@ -128,6 +129,7 @@
128129

129130
@include xs-to-md {
130131
margin-top: 47px;
132+
min-width: auto;
131133
}
132134

133135
.shareButtons {
@@ -350,7 +352,7 @@
350352
font-weight: bolder;
351353
text-decoration: none;
352354
text-transform: uppercase;
353-
line-height: 40px;
355+
line-height: 38px;
354356
padding: 0 20px;
355357

356358
&:hover {

0 commit comments

Comments
 (0)