Currently, the 'X' icon in view lesson closes the view window. The 'X' icon on the lesson card itself deletes the lesson card.
In my opinion, removing the 'X' icon from the lesson card and replacing it with a trash icon provides more consistency along with the edit/pencil icon that already exists. I think it might also help reduce confusion between the two 'X' icons that have different functionalities.
It could potentially look like this (apologies for the styling):
Currently, the 'X' icon in view lesson closes the view window. The 'X' icon on the lesson card itself deletes the lesson card.
In my opinion, removing the 'X' icon from the lesson card and replacing it with a trash icon provides more consistency along with the edit/pencil icon that already exists. I think it might also help reduce confusion between the two 'X' icons that have different functionalities.
It could potentially look like this (apologies for the styling):