0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-15 21:22:43 +00:00

Small refactor to fix broken error popup

This commit is contained in:
Trevor Buckner
2023-04-04 23:41:44 -04:00
parent 8958238342
commit 2cb6acc090
3 changed files with 81 additions and 84 deletions

View File

@@ -1,10 +1,9 @@
.navItem { .navItem.error {
&.error {
position : relative; position : relative;
background-color : @red; background-color : @red;
} }
.errorContainer{ .errorContainer{
animation-name: glideDown; animation-name: glideDown;
animation-duration: 0.4s; animation-duration: 0.4s;
position : absolute; position : absolute;
@@ -73,5 +72,4 @@
background-color : teal; background-color : teal;
} }
} }
}
} }

View File

@@ -254,6 +254,15 @@ const EditPage = createClass({
</div> </div>
</div> </div>
} }
{this.state.alertTrashedGoogleBrew &&
<div className='errorContainer' onClick={this.closeAlerts}>
This brew is currently in your Trash folder on Google Drive!<br />If you want to keep it, make sure to move it before it is deleted permanently!<br />
<div className='confirm'>
OK
</div>
</div>
}
</Nav.item>; </Nav.item>;
}, },
@@ -335,16 +344,6 @@ const EditPage = createClass({
const shareLink = this.processShareId(); const shareLink = this.processShareId();
return <Navbar> return <Navbar>
{this.state.alertTrashedGoogleBrew &&
<div className='errorContainer' onClick={this.closeAlerts}>
This brew is currently in your Trash folder on Google Drive!<br />If you want to keep it, make sure to move it before it is deleted permanently!<br />
<div className='confirm'>
OK
</div>
</div>
}
<Nav.section> <Nav.section>
<Nav.item className='brewTitle'>{this.state.brew.title}</Nav.item> <Nav.item className='brewTitle'>{this.state.brew.title}</Nav.item>
</Nav.section> </Nav.section>