Skip to content

Commit fcb6ecc

Browse files
author
Andrei Alexandru
committed
home errror overflow hidden
1 parent 9112970 commit fcb6ecc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

views/src/screens/Home.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const mapStateToProps = state => {
1414
return {
1515
serverUrl: state.serverUrl,
1616
user: state.user,
17-
links: state.links
17+
links: state.links,
18+
error: state.user.wishlistError ? 'error': ''
1819
}
1920
}
2021

@@ -35,7 +36,7 @@ class Home extends React.Component {
3536
links = props.links;
3637
return (
3738
<div>
38-
<div className="content container">
39+
<div className={`content container ${this.props.error}`}>
3940
<Header />
4041
<Tabs className="dashboard-tabs">
4142
<TabList>
@@ -87,5 +88,6 @@ export default connect(mapStateToProps)(Home);
8788
Home.propTypes = {
8889
serverUrl: PropTypes.string,
8990
user: PropTypes.object,
90-
links: PropTypes.array
91+
links: PropTypes.array,
92+
error: PropTypes.string
9193
}

views/src/scss/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ $dark-gray: #555;
44
color: $dark-gray; //dark-gray
55
font-family: 'Roboto', sans-serif;
66
min-height: calc(100vh - 292px);
7+
8+
&.error {
9+
overflow: hidden; // Modal error > Prevent scroll
10+
}
711
}
812

913
h1 {

0 commit comments

Comments
 (0)