hook fix
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
function Instruction() {
|
||||
return (
|
||||
<div>
|
||||
Tu miała być instrukcja
|
||||
</div>
|
||||
)
|
||||
return (
|
||||
<iframe
|
||||
src={`${import.meta.env.VITE_PUBLIC_URL}/instruction.pdf`}
|
||||
style={{ width: "100%", height: "100vh" }}
|
||||
></iframe>
|
||||
);
|
||||
}
|
||||
|
||||
export default Instruction
|
||||
export default Instruction;
|
||||
|
||||
/*
|
||||
<object
|
||||
type="application/pdf"
|
||||
src={link}
|
||||
style={{ width: "100%", height: "100vh" }}
|
||||
>
|
||||
<p>
|
||||
PDF cannot be displayed. <a href={link}>Download PDF</a>
|
||||
</p>
|
||||
</object>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user