Skip to content

Commit

Permalink
QRコードをuser_idにした (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisagi authored Oct 7, 2024
2 parents 57f4166 + 5fee9f7 commit 608141f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/routes/qrcode.tsx → app/routes/_auth.play.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import type { MetaFunction } from "@remix-run/node";
import QRCode from "~/components/qrcode";
import { useSession } from "~/hooks/useSession";

export const meta: MetaFunction = () => {
return [{ title: "QR Code" }, { name: "description", content: "qr code" }];
};

export default function Page() {
const session = useSession();

if (!session) return null;
return (
<div className="p-4 font-sans">
<h1 className="text-3xl">QR code</h1>
<ul className="mt-4 list-disc space-y-2 pl-6">
<QRCode url="https://www.tuatmcc.com/" size={512} />
<QRCode url={session.user.id} size={512} />
<div>ID: {session.user.id}</div>
</ul>
</div>
);
Expand Down

0 comments on commit 608141f

Please sign in to comment.