mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 05:09:58 -05:00
Initial alpha version of the Ratio Calculator.
This commit is contained in:
parent
f321e9f6f3
commit
fb187e1305
8 changed files with 474 additions and 32 deletions
|
|
@ -97,8 +97,9 @@ export function NavBar() {
|
|||
|
||||
// Red/Yellow colors will blend in to some navbar colors, swap the colors for high contrast.
|
||||
const conflictingColors = ['red', 'orange', 'yellow', 'olive', 'pink'];
|
||||
const lowWarningColor = conflictingColors.includes(navColor) ? 'white' : 'yellow';
|
||||
const highWarningColor = conflictingColors.includes(navColor) ? 'black' : 'red';
|
||||
const [lowWarningColor, highWarningColor] = conflictingColors.includes(navColor)
|
||||
? [null, 'black']
|
||||
: ['yellow', 'red'];
|
||||
|
||||
// Generic system load, the least important warning.
|
||||
const {minute_1, mediumLoad, highLoad} = useLoad();
|
||||
|
|
@ -172,7 +173,6 @@ export function NavBar() {
|
|||
processingLink = '/map/manage';
|
||||
}
|
||||
}
|
||||
|
||||
const processingIcon = processingLink &&
|
||||
<Link to={processingLink}>
|
||||
<Icon loading name='circle notch' size='large'/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue