Skip to content

Commit

Permalink
Merge pull request #37 from amosmachora/dev
Browse files Browse the repository at this point in the history
tried updating daraja lib in the docs
  • Loading branch information
Amos Machora authored Jan 7, 2024
2 parents e55d2da + 37a21b4 commit af10f55
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions docs-app/components/QrCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {
ScannableQrParams,
} from "react-daraja";

export const dynamic = "force-dynamic";

export const QrCode = () => {
const nextJSCodeExample = `
import React from "react";
Expand Down Expand Up @@ -131,9 +129,9 @@ export const QrCode = () => {
PS: I used the library to generate the QRCode
</span>
</p>
{/* <div className="w-[100px] aspect-square mt-5 mx-auto">
<div className="w-[100px] aspect-square mt-5 mx-auto">
<QRCodeDisplay scannableQRParams={qrCodeParams} />
</div> */}
</div>
<CodeBlockWrapper code={nextJSCodeExample} />
<div className="mt-5">
Now if you use vanilla react i.e create-react-app or vite maybe you can
Expand Down
8 changes: 4 additions & 4 deletions docs-app/package-lock.json

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

2 changes: 1 addition & 1 deletion docs-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"next": "14.0.4",
"react": "^18",
"react-code-blocks": "^0.1.5",
"react-daraja": "^0.1.9",
"react-daraja": "^0.2.0",
"react-dom": "^18",
"tailwind-merge": "^2.2.0",
"tailwindcss-animate": "^1.0.7"
Expand Down

0 comments on commit af10f55

Please sign in to comment.