feat: undefined type

This commit is contained in:
cha0s 2021-01-30 20:25:18 -06:00
parent 2aa31e0405
commit fd6220398e
2 changed files with 6 additions and 1 deletions

View File

@ -274,6 +274,7 @@ const Expression = ({
className={classnames( className={classnames(
'expression', 'expression',
{'wrong-type': realType !== type}, {'wrong-type': realType !== type},
{'undefined-type': 'undefined' === realType},
)} )}
> >
{Renderables} {Renderables}

View File

@ -7,7 +7,11 @@
color: #00bdd6; color: #00bdd6;
} }
&.wrong-type { &.wrong-type {
background-color: rgba(255, 0, 0, 0.4); background-color: rgb(180, 0, 0);
padding: 0.5em;
}
&.undefined-type {
background-color: rgb(180, 180, 0);
padding: 0.5em; padding: 0.5em;
} }
> .expression { > .expression {