Peel the onion, ginger, garlic, and sweet potato and chop them up. Also, chop the chicken thighs into bite-sized pieces.
Add the olive oil to a large pan and then add in the chopped sweet potato and sauté 5 minutes.
Then add in the chopped chicken thighs and let sauté for about 5 minutes, then flip the chicken pieces over.
Add in the chopped onion, ginger, and garlic.
Add in the coriander, smoked paprika, cayenne, oregano, and basil and stir well.
Then add in the can of diced tomatoes, tomato paste, frozen spinach, and frozen peas. Put the lid on to the pan, and let the ingredients simmer for about 5 minutes. Uncover and stir well, then cover and let simmer another 5 minutes.
Turn the stove off and remove the pan from the heat.
Add in the coconut milk and stir well.
Season with salt and pepper. Drizzle with chopped parsley and chili flakes, if desired, and enjoy warm.