File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff 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);
8788Home . propTypes = {
8889 serverUrl : PropTypes . string ,
8990 user : PropTypes . object ,
90- links : PropTypes . array
91+ links : PropTypes . array ,
92+ error : PropTypes . string
9193}
Original file line number Diff line number Diff 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
913h1 {
You can’t perform that action at this time.
0 commit comments