Sean Spicer abruptly quit the White House after it was announced President Trump had hired Anthony 'Mooch' Scaramucci to work for his administration.

Ten days on, Spicer was all smiles as he was photographed on Monday attending a presentation at the White House to honor a former army medic.

The outgoing press secretary's cheery appearance came on the same day Trump revealed he had sacked Scaramucci after just one week as his communications director.

Outgoing press secretary Sean Spicer was all smiles as he was photographed on Monday (above) attending a presentation at the White House to honor a former army medic on the same day Anthony 'Mooch' Scaramucci was fired

Spicer resigned when Trump reportedly informed him on July 21 that he would be reporting directly to Scaramucci.

He voiced his objections and is believed to have told the President that hiring Scaramucci as communications director would only compound the chaos that had come to characterize a fractured White House, the New York Times reported.

'Sean Spicer is a wonderful person who took tremendous abuse from the Fake News Media - but his future is bright!' Trump tweeted following his resignation.

The President tweeted again on Monday that it had been another 'great day at the White House' soon after he sacked Scaramucci over an obscene tirade in which he ridiculed senior White House officials.

Spicer's cheery appearance came on the same day Trump revealed he had sacked Scaramucci after just one week as his communications director

Spicer resigned when Trump reportedly informed him on July 21 that he would be reporting directly to Anthony Scaramucci (above on the day his appointment was announced)

The new White House chief of staff Gen. John Kelly saw fit to dispatch Scaramucci during his own first hours on the job.

The departure of Scaramucci followed one of the rockiest weeks of Trump's presidency in which a major Republican effort to overhaul the US healthcare system failed in Congress and both his spokesman and previous chief of staff left their jobs as White House infighting burst into the open.

Scaramucci was damaged by comments he made to The New Yorker magazine last week in which he attacked then-White House chief of staff Reince Priebus and Trump's chief strategist, Steve Bannon, in profanity-laden terms.

'The president certainly felt that Anthony's comments were inappropriate for a person in that position,' spokeswoman Sarah Sanders told reporters on Monday.

Sanders declined to answer questions about whether Trump asked Scaramucci to leave or whether Kelly pushed him out to get a clear line of authority.

After his resignation, Spicer was spotted waving at reporters as he departed the White House on July 21

Asked about any changes in Spicer's role – he is expected to leave at the end of August – Sanders said: 'I'm not aware of any changes that have been made on that front.'

Priebus resigned on Friday.

Spicer, a Priebus ally, quit the day Scaramucci's appointment was announced.

He told Fox News he resigned because he felt there were 'too many cooks in the kitchen'.

‘I just thought it was in the best interest of our communications department, of our press organization, to not have too many cooks in the kitchen,’ Spicer told Sean Hannity.

Spicer’s six months as press secretary have been plagued by criticism over his testy exchanges with reporters.

He also admitted to being stung by Saturday Night Live, which lampooned him in a series of skits in which he was played by Melissa McCarthy.

Scaramucci was damaged by comments he made to The New Yorker magazine last week in which he attacked then-White House chief of staff Reince Priebus and Trump's chief strategist, Steve Bannon, in profanity-laden terms