Skip to content

Created a printbutton component and use it in CreatCommand.js Page - #300

Open
AliBourara wants to merge 1 commit into
mestirifrom
ali
Open

AliBourara wants to merge 1 commit into
mestirifrom
ali

Conversation

@AliBourara

Copy link
Copy Markdown

I created a component "PrintButton" in the commun/buttons folder,
I used the package react-to-print and useRef hook for the print usage,
i made a handelPPrint function for that so i can make a 5 second delay on the print so that upon clicking in the print button the page change(title changed and buttons removed),
print-1

print-2
print-3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant