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

Revert "Small refactor to fix broken error popup"

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

View File

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

View File

@@ -254,15 +254,6 @@ const EditPage = createClass({
</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>;
},
@@ -344,6 +335,16 @@ const EditPage = createClass({
const shareLink = this.processShareId();
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.item className='brewTitle'>{this.state.brew.title}</Nav.item>
</Nav.section>