add green bg for modal code

This commit is contained in:
Hubert Sokołowski
2021-05-19 02:56:15 +02:00
parent f0f8f5c120
commit cb47d73d75

View File

@@ -71,9 +71,22 @@ function ModalPopup({
{i + 1}.
<Stack direction="row">
<Code children={'Gain: ' + x.maxDif.toFixed(3)} />
<Code children={'Attr1: ' + x.attribute1} />
<Code children={'Attr2: ' + x.attribute2} />
{x.L_weight ? <Code children={'Weight: ' + x.L_weight.toFixed(3)} /> : <></>}
<Code
children={'Attr1: ' + x.attribute1}
colorScheme={state.attribute == x.attribute1 ? 'green' : 'gray'}
/>
<Code
children={'Attr2: ' + x.attribute2}
colorScheme={state.pivot == x.attribute2 ? 'green' : 'gray'}
/>
{x.L_weight ? (
<Code
children={'Weight: ' + x.L_weight.toFixed(3)}
colorScheme={state.weight == x.L_weight.toFixed(3) ? 'green' : 'gray'}
/>
) : (
<></>
)}
<Code children={'Matched: ' + x.match.length} />
<Code children={'NotMatched: ' + x.notMatch.length} />
</Stack>