mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-30 20:06:22 -05:00
Solar: drop the data source line under the location
The attribution at the bottom of the page is enough. The line under the location now only appears to report the data's state: loading, failed to load, or replaced by the user's own values. Bumps wrolpi-help for the refreshed screenshot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a51b15bf4f
commit
bbd2e42715
4 changed files with 6 additions and 9 deletions
|
|
@ -41,7 +41,6 @@ import {
|
|||
CLIMATOLOGY_CHANGES,
|
||||
CLIMATOLOGY_DATA_REFERENCE,
|
||||
CLIMATOLOGY_LICENSE,
|
||||
CLIMATOLOGY_SOURCE,
|
||||
lookupClimatology,
|
||||
useClimatology,
|
||||
} from "./solarData";
|
||||
|
|
@ -247,7 +246,8 @@ function LocationSection({get, set, s, climatology}) {
|
|||
);
|
||||
};
|
||||
|
||||
let source;
|
||||
// The data's attribution is at the bottom of the page; this line only reports the data's state.
|
||||
let source = null;
|
||||
if (s.ownData) {
|
||||
source = 'Using your own sunlight data.';
|
||||
} else if (climatology.loading) {
|
||||
|
|
@ -256,8 +256,6 @@ function LocationSection({get, set, s, climatology}) {
|
|||
source = <Message kind='warning' title='Sunlight data could not be loaded'>
|
||||
Enter your own monthly sunlight under "Use my own sunlight data" below.
|
||||
</Message>;
|
||||
} else {
|
||||
source = `Sunlight and temperature: ${CLIMATOLOGY_SOURCE}; see Data attribution at the bottom of the page.`;
|
||||
}
|
||||
|
||||
return <>
|
||||
|
|
@ -279,7 +277,7 @@ function LocationSection({get, set, s, climatology}) {
|
|||
</Grid.Col>
|
||||
</Grid>
|
||||
{geoError && <Message kind='warning' title='Could not get your location'>{geoError}</Message>}
|
||||
<div style={{fontSize: '0.85em', opacity: 0.75, marginTop: '0.5em'}}>{source}</div>
|
||||
{source && <div style={{fontSize: '0.85em', opacity: 0.75, marginTop: '0.5em'}}>{source}</div>}
|
||||
</>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue