react/jsx_no_useless_fragment
Shorten code. Also do the enum match first, as its cheaper than a string comparison.