Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get wallet url. #45

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pages/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ import { SERVER_URL } from 'utils/constants';
export default function Wallet() {
const { Canvas } = useQRCode();
const qrCodeSize = 400;
const walletUrl = `https://${SERVER_URL}/api/getwallet`;
const walletUrl = `https://${SERVER_URL.replace('https://', '')}/api/getwallet`;
return (
<>
<Head>
<title>Quotient Wallet</title>
</Head>
<Header />
<div className="mb-4 mt-2">
<h2 className="font-medium text-3xl text-slate-700">Get the Quotient Wallet</h2>
<div className="mt-2 mb-4">
<h2 className="text-3xl font-medium text-slate-700">Get the Quotient Wallet</h2>
<p className="text-xl">
Scan the QR code to download the Quotient Wallet for Android or iOS.
</p>

<div className="m-auto rounded-lg overflow-hidden flex justify-center">
<div className="flex justify-center m-auto overflow-hidden rounded-lg">
<Canvas
text={walletUrl}
options={{
Expand Down
Loading