0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 22:52:40 +00:00

Tweak styling, remove obsolete locked property

This commit is contained in:
G.Ambatte
2024-06-12 21:48:55 +12:00
parent c594fc58b3
commit fc99328459
2 changed files with 11 additions and 5 deletions

View File

@@ -37,9 +37,11 @@ const LockTools = createClass({
<hr />
<LockBrew></LockBrew>
<hr />
<LockLookup title='Unlock Brew' fetchURL='/admin/unlock' updateFn={this.updateReviewCount}></LockLookup>
<div style={{ columns: 2 }}>
<LockLookup title='Unlock Brew' fetchURL='/admin/unlock' updateFn={this.updateReviewCount}></LockLookup>
<LockLookup title='Clear Review Request' fetchURL='/admin/lock/review/remove'></LockLookup>
</div>
<hr />
<LockLookup title='Clear Review Request' fetchURL='/admin/lock/review/remove'></LockLookup>
</div>;
}
});
@@ -68,8 +70,7 @@ const LockBrew = createClass({
code : parseInt(this.state.code) || 100,
editMessage : this.state.editMessage,
shareMessage : this.state.shareMessage,
applied : new Date,
locked : true
applied : new Date
};
request.post(`/admin/lock/${this.state.brewId}`)
@@ -204,7 +205,6 @@ const LockTable = createClass({
{this.state.result[this.props.resultName] &&
<>
<p>Total Reviews Waiting: {this.state.result[this.props.resultName].length}</p>
<hr />
<p>Click a row to copy the Share ID to the clipboard</p>
<table className='lockTable'>
<thead>

View File

@@ -49,4 +49,10 @@
padding: 4px 10px;
text-align: center;
}
.brewLookup{
h2 {
margin-top: 0px;
}
}
}