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;
|
||||
|
||||
let deg = '\u00B0';
|
||||
|
||||
return (
|
||||
<Section title="Weather">
|
||||
<Section title="Current Conditions">
|
||||
@@ -1195,8 +1197,8 @@ const WeatherTab = (props, context) => {
|
||||
{toTitleCase(wr.Weather)}
|
||||
</LabeledList.Item>
|
||||
<LabeledList.Item label="Temperature">
|
||||
Current: {wr.Temperature.toFixed()}°C | High:{' '}
|
||||
{wr.High.toFixed()}°C | Low: {wr.Low.toFixed()}°C
|
||||
Current: {wr.Temperature.toFixed()} {deg}C | High:{' '}
|
||||
{wr.High.toFixed()} {deg}C | Low: {wr.Low.toFixed()} {deg}C
|
||||
</LabeledList.Item>
|
||||
<LabeledList.Item label="Wind Direction">
|
||||
{wr.WindDir}
|
||||
|
||||
@@ -64,7 +64,7 @@ export const pda_medical = (props, context) => {
|
||||
{medical.cdi_d}
|
||||
</LabeledList.Item>
|
||||
<LabeledList.Item label="Important Notes" preserveWhitespace>
|
||||
{medical.notes}
|
||||
<Box preserveWhitespace>{medical.notes}</Box>
|
||||
</LabeledList.Item>
|
||||
</LabeledList>
|
||||
)) || <Box color="bad">Medical record lost!</Box>}
|
||||
|
||||
@@ -51,8 +51,10 @@ export const pda_security = (props, context) => {
|
||||
<LabeledList.Item label="Details">
|
||||
{security.ma_crim_d}
|
||||
</LabeledList.Item>
|
||||
<LabeledList.Item label="Important Notes:" preserveWhitespace>
|
||||
<LabeledList.Item label="Important Notes:">
|
||||
<Box preserveWhitespace>
|
||||
{security.notes || 'No data found.'}
|
||||
</Box>
|
||||
</LabeledList.Item>
|
||||
</LabeledList>
|
||||
)) || <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