[Glitch] Wrapstodon modal with new share button

Port 31c392b1bc to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo
2025-12-03 17:25:36 +01:00
committed by Claire
parent 5a5ba02f96
commit 2d93e63e43
5 changed files with 92 additions and 96 deletions

View File

@@ -3,16 +3,15 @@ import { useEffect } from 'react';
import { AnnualReport } from 'flavours/glitch/features/annual_report';
const AnnualReportModal: React.FC<{
year: string;
onChangeBackgroundColor: (arg0: string) => void;
}> = ({ year, onChangeBackgroundColor }) => {
onChangeBackgroundColor: (color: string) => void;
}> = ({ onChangeBackgroundColor }) => {
useEffect(() => {
onChangeBackgroundColor('var(--indigo-1)');
}, [onChangeBackgroundColor]);
return (
<div className='modal-root__modal annual-report-modal'>
<AnnualReport year={year} />
<AnnualReport />
</div>
);
};