E0503 Case outside a match
Why
A case is one branch of a match; on its own it decides nothing.
How to fix it
Put it inside <match value={...}>, or use <show when={...}> for one condition.
In a terminal
duolith explain E0503