Skip to content

Commit

Permalink
Merge pull request #5525 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
Release v1.9.3
  • Loading branch information
luizrrodrigues authored May 21, 2021
2 parents 9e78fad + fa8c07b commit a663404
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 12 additions & 12 deletions src/shared/components/Contentful/Tabs/Tabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ export default class TabsItemsLoader extends Component {
const q = getQuery();
const { tabId } = this.props;
const { tabIndex } = this.state;
if (q.tabs && q.tabs[tabId] && Number(q.tabs[tabId]) !== tabIndex) {
this.setState({ tabIndex: Number(q.tabs[tabId]) });
} else {
this.updatePageUrl();
if (q.tracks && q.tracks[tabId] && Number(q.tracks[tabId]) !== tabIndex) {
this.setState({ tabIndex: Number(q.tracks[tabId]) });
}
}

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

updatePageUrl() {
const q = getQuery();
const { tabId } = this.props;
const { tabIndex } = this.state;
updateQuery({
tabs: {
...q.tabs,
[tabId]: tabIndex || 0,
},
this.setState((state) => {
const q = getQuery();
const { tabId } = this.props;
const { tabIndex } = state;
updateQuery({
tabs: {
...q.tracks,
[tabId]: tabIndex || 0,
},
});
});
}

Expand Down
4 changes: 3 additions & 1 deletion src/shared/components/Gigs/GigDetails/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

@include xs-to-sm {
margin-bottom: 20px;
margin-right: 0;
}
}

Expand Down Expand Up @@ -128,6 +129,7 @@

@include xs-to-md {
margin-top: 47px;
min-width: auto;
}

.shareButtons {
Expand Down Expand Up @@ -350,7 +352,7 @@
font-weight: bolder;
text-decoration: none;
text-transform: uppercase;
line-height: 40px;
line-height: 38px;
padding: 0 20px;

&:hover {
Expand Down

0 comments on commit a663404

Please sign in to comment.