mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
Merge branch 'master' into tgui-security-records
This commit is contained in:
@@ -20,6 +20,7 @@ export const Radio = (props, context) => {
|
||||
} = data;
|
||||
const tunedChannel = RADIO_CHANNELS
|
||||
.find(channel => channel.freq === frequency);
|
||||
let matchedChannel = (tunedChannel && tunedChannel.name) ? true : false;
|
||||
let colorMap = [];
|
||||
let rc = [];
|
||||
let i = 0;
|
||||
@@ -69,7 +70,7 @@ export const Radio = (props, context) => {
|
||||
})} />
|
||||
</Fragment>
|
||||
)}
|
||||
{tunedChannel && (
|
||||
{matchedChannel && (
|
||||
<Box inline color={tunedChannel.color} ml={2}>
|
||||
[{tunedChannel.name}]
|
||||
</Box>
|
||||
@@ -128,7 +129,8 @@ export const Radio = (props, context) => {
|
||||
key={"i_" + channel.name}
|
||||
icon="arrow-right"
|
||||
content={channel.name}
|
||||
selected={tunedChannel.name === channel.name}
|
||||
selected={matchedChannel
|
||||
&& tunedChannel.name === channel.name}
|
||||
onClick={() => act('ichannel', {
|
||||
ichannel: channel.freq,
|
||||
})} />
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user