Skip to content

Commit

Permalink
fix: feature flag pour une autre
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Feb 8, 2024
1 parent 9c4affd commit e880ad2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions dashboard/src/scenes/stats/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -560,16 +560,17 @@ const Stats = () => {
/>
</div>
<div className="tw-min-w-[15rem] tw-basis-1/3 tw-p-0">
{activeTab.includes('Personnes') && organisation._id === '00000000-5f5a-89e2-2e60-88fa20cc50bf' && (
<button
type="button"
className={!evolutivesStatsActivated ? 'button-classic' : 'button-submit'}
onClick={() => {
setEvolutivesStatsActivated(!evolutivesStatsActivated);
}}>
Affichage évolutif {evolutivesStatsActivated ? 'activé' : 'désactivé'}
</button>
)}
{activeTab.includes('Personnes') &&
['fdaed30a-5add-46d7-b08a-60d7a5a60aa2', '00000000-5f5a-89e2-2e60-88fa20cc50bf'].includes(organisation._id) && (
<button
type="button"
className={!evolutivesStatsActivated ? 'button-classic' : 'button-submit'}
onClick={() => {
setEvolutivesStatsActivated(!evolutivesStatsActivated);
}}>
Affichage évolutif {evolutivesStatsActivated ? 'activé' : 'désactivé'}
</button>
)}
</div>
<div className="tw-ml-auto tw-flex tw-basis-1/3 tw-items-center tw-justify-end">
<ButtonCustom color="link" title="Imprimer" onClick={window.print} />
Expand Down

0 comments on commit e880ad2

Please sign in to comment.