0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-05 03:42:38 +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 /> <hr />
<LockBrew></LockBrew> <LockBrew></LockBrew>
<hr /> <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 /> <hr />
<LockLookup title='Clear Review Request' fetchURL='/admin/lock/review/remove'></LockLookup>
</div>; </div>;
} }
}); });
@@ -68,8 +70,7 @@ const LockBrew = createClass({
code : parseInt(this.state.code) || 100, code : parseInt(this.state.code) || 100,
editMessage : this.state.editMessage, editMessage : this.state.editMessage,
shareMessage : this.state.shareMessage, shareMessage : this.state.shareMessage,
applied : new Date, applied : new Date
locked : true
}; };
request.post(`/admin/lock/${this.state.brewId}`) request.post(`/admin/lock/${this.state.brewId}`)
@@ -204,7 +205,6 @@ const LockTable = createClass({
{this.state.result[this.props.resultName] && {this.state.result[this.props.resultName] &&
<> <>
<p>Total Reviews Waiting: {this.state.result[this.props.resultName].length}</p> <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> <p>Click a row to copy the Share ID to the clipboard</p>
<table className='lockTable'> <table className='lockTable'>
<thead> <thead>

View File

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