Skip to content

Commit

Permalink
🐛 Afficher Imprimer aux Dreal (#2215)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjlevesque authored Sep 18, 2024
1 parent 9d5846c commit 3a044a2
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,21 @@ const AdminActions = ({
);
};

type DrealActionsProps = {
project: ProjectDataForProjectPage;
};
const DrealActions = ({ project }: DrealActionsProps) => {
return (
<div className="flex flex-col md:flex-row gap-2">
<EnregistrerUneModification project={project} />
<PrimaryButton onClick={() => window.print()}>
<PrintIcon className="text-white mr-2" aria-hidden />
Imprimer la page
</PrimaryButton>
</div>
);
};

type ProjectActionsProps = {
project: ProjectDataForProjectPage;
user: User;
Expand Down Expand Up @@ -209,7 +224,7 @@ export const ProjectActions = ({
hasAttestationConformité={hasAttestationConformité}
/>
)}
{userIs(['dreal'])(user) && <EnregistrerUneModification project={project} />}
{userIs(['dreal'])(user) && <DrealActions project={project} />}
</div>
);

Expand Down

0 comments on commit 3a044a2

Please sign in to comment.