Skip to content

Commit

Permalink
Merge pull request #12 from rezkiy37/feature/22998-connect-react-fast…
Browse files Browse the repository at this point in the history
…-pdf

Connect react-fast-pdf to the Expensify app
  • Loading branch information
mountiny authored Feb 20, 2024
2 parents 52bd7e4 + fb9d445 commit 26e6ac4
Show file tree
Hide file tree
Showing 11 changed files with 341 additions and 209 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.9.0
20.10.0
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function App() {
type="button"
onClick={() => setFile('example_protected.pdf')}
>
example_protected.pdf
example_protected.pdf (Password: 123456)
</button>
</div>
</>
Expand Down
7 changes: 6 additions & 1 deletion example/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
}

* {
margin: 0;
color: #e7ece9;
font-family: ExpensifyMono-Neue;
}

*:not(div) {
margin: 0;
}

body {
width: 100vw;
height: 100vh;
Expand All @@ -38,6 +41,8 @@ body {
}

.react-pdf__Page {
direction: ltr;
margin: 1px auto -8px auto;
background-color: transparent !important;
}

Expand Down
139 changes: 65 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
},
"homepage": "https://github.com/Expensify/react-fast-pdf#readme",
"dependencies": {
"react-pdf": "^7.3.3",
"react-window": "^1.8.9"
"react-pdf": "^7.7.0",
"react-window": "^1.8.10"
},
"peerDependencies": {
"lodash": "4.x",
Expand Down Expand Up @@ -66,13 +66,13 @@
"prettier": "^3.0.0",
"style-loader": "^3.3.3",
"ts-loader": "^9.4.4",
"typescript": "^5.1.6",
"typescript": "^5.3.2",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
},
"engines": {
"node": "20.9.0",
"npm": "10.1.0"
"node": "20.10.0",
"npm": "10.2.3"
}
}
Loading

0 comments on commit 26e6ac4

Please sign in to comment.