mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
TGUI changes
This commit is contained in:
@@ -1158,6 +1158,8 @@ const WeatherTab = (props, context) => {
|
|||||||
|
|
||||||
const { aircontents, weather } = data;
|
const { aircontents, weather } = data;
|
||||||
|
|
||||||
|
let deg = '\u00B0';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Section title="Weather">
|
<Section title="Weather">
|
||||||
<Section title="Current Conditions">
|
<Section title="Current Conditions">
|
||||||
@@ -1195,8 +1197,8 @@ const WeatherTab = (props, context) => {
|
|||||||
{toTitleCase(wr.Weather)}
|
{toTitleCase(wr.Weather)}
|
||||||
</LabeledList.Item>
|
</LabeledList.Item>
|
||||||
<LabeledList.Item label="Temperature">
|
<LabeledList.Item label="Temperature">
|
||||||
Current: {wr.Temperature.toFixed()}°C | High:{' '}
|
Current: {wr.Temperature.toFixed()} {deg}C | High:{' '}
|
||||||
{wr.High.toFixed()}°C | Low: {wr.Low.toFixed()}°C
|
{wr.High.toFixed()} {deg}C | Low: {wr.Low.toFixed()} {deg}C
|
||||||
</LabeledList.Item>
|
</LabeledList.Item>
|
||||||
<LabeledList.Item label="Wind Direction">
|
<LabeledList.Item label="Wind Direction">
|
||||||
{wr.WindDir}
|
{wr.WindDir}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export const pda_medical = (props, context) => {
|
|||||||
{medical.cdi_d}
|
{medical.cdi_d}
|
||||||
</LabeledList.Item>
|
</LabeledList.Item>
|
||||||
<LabeledList.Item label="Important Notes" preserveWhitespace>
|
<LabeledList.Item label="Important Notes" preserveWhitespace>
|
||||||
{medical.notes}
|
<Box preserveWhitespace>{medical.notes}</Box>
|
||||||
</LabeledList.Item>
|
</LabeledList.Item>
|
||||||
</LabeledList>
|
</LabeledList>
|
||||||
)) || <Box color="bad">Medical record lost!</Box>}
|
)) || <Box color="bad">Medical record lost!</Box>}
|
||||||
|
|||||||
@@ -51,8 +51,10 @@ export const pda_security = (props, context) => {
|
|||||||
<LabeledList.Item label="Details">
|
<LabeledList.Item label="Details">
|
||||||
{security.ma_crim_d}
|
{security.ma_crim_d}
|
||||||
</LabeledList.Item>
|
</LabeledList.Item>
|
||||||
<LabeledList.Item label="Important Notes:" preserveWhitespace>
|
<LabeledList.Item label="Important Notes:">
|
||||||
{security.notes || 'No data found.'}
|
<Box preserveWhitespace>
|
||||||
|
{security.notes || 'No data found.'}
|
||||||
|
</Box>
|
||||||
</LabeledList.Item>
|
</LabeledList.Item>
|
||||||
</LabeledList>
|
</LabeledList>
|
||||||
)) || <Box color="bad">Security record lost!</Box>}
|
)) || <Box color="bad">Security record lost!</Box>}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user