How can I assign inline CSS to an element? I get an error if I write this, the error is:
Type '{ backgroundColor: string; color: string; marginRight: number; borderRadius: number; borderRight: number; borderLeft: number; borderTop: number; borderBottom: string | false; }' is not assignable to type 'CSSProperties'. Types of property 'borderBottom' are incompatible. Type 'string | false' is not assignable to type 'string | number | (string & {}) | undefined'. Type 'false' is not assignable to type 'string | number | (string & {}) | undefined'.
<span style={{backgroundColor:backgroundColor,color:color,marginRight:3,borderRadius:4,borderRight:0,borderLeft:0,borderTop:0,borderBottom: isCurrent && '3px solid #00416d'}}>{Symbol}</span>
borderBottom: isCurrent ? '3px solid Ơd' : undefined- Николай Гольцев