Skip to content

Commit

Permalink
fix pdf button not working in sub urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Reynard-G committed Mar 22, 2024
1 parent 86e6b0a commit 809cf39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Empty file modified backend/run.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions frontend/src/components/Printables/SchedulePDF.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Image, Text, View, Page, Document, StyleSheet, Font } from "@react-pdf/

Font.register({
family: "ChakraPetch",
src: "/fonts/ChakraPetch-Bold.ttf",
src: process.env.PUBLIC_URL + "/fonts/ChakraPetch-Bold.ttf",
});

export default function SchedulePDF({ classes }) {
Expand Down Expand Up @@ -52,7 +52,7 @@ export default function SchedulePDF({ classes }) {

const Title = () => (
<View style={styles.titleContainer}>
<Image style={styles.image} src="/Logo.png" />
<Image style={styles.image} src={process.env.PUBLIC_URL + "/Logo.png"} />
<Text style={styles.title}>Model Scheduler</Text>
</View>
);
Expand Down

0 comments on commit 809cf39

Please sign in to comment.