Here the 2nd Inputbase should only be displayed if the type is card The Inputbase is the function of React-beautiful-dnd
I have tried using normally the if and else and ternary but it isnt working
Here the 2nd Inputbase should only be displayed if the type is card The Inputbase is the function of React-beautiful-dnd
I have tried using normally the if and else and ternary but it isnt working
To display the second input use the ternary operator condition like this:
{type === 'card'?(
//add your second input here
):(null)
and remove the ternary operator logic from InputBase's placeholder