Skip to content

Conversation

@michael1yu
Copy link

Fix export pathways to PDF (minus showing pathway images) #95

Copy link
Contributor

@reginawang3495 reginawang3495 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work! gave you some image help through slack but lmk if there's anything else I can do for you :)

Here is just a quick PR shape review

@@ -0,0 +1,117 @@
import { Link, Document, Page, Text, View, StyleSheet, Font } from "@react-pdf/renderer";

const PathwayPDF = ({ resources }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't seriously looked into it, but I wonder if we can effectively reduce duplicate code by having the PathDay component use View, Document, etc from @react-pdf/renderer.

I took a quick look and it seems possible, but I could be wrong. Maybe take a bit of time and if doesn't work easily lmk and I might take a look as well!

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.

3 participants