feat: add level prop to qrcode

This commit is contained in:
Tristan Yang
2023-02-26 14:41:31 +08:00
parent e80466b1c8
commit c3e60db634
2 changed files with 23 additions and 20 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ const GuestBlankPlaceholder = () => {
<div className="flex flex-col gap-2">
<span className="text-gray-400 dark:text-gray-200 my-3 text-sm">{t("guest_login_tip")}</span>
<div className="w-44 h-44 self-center mb-4">
<QRCode size={1200} link={`https://voce.chat/login?s=${encodeURIComponent(BASE_ORIGIN)}`} />
<QRCode level="Q" size={1200} link={`https://voce.chat/login?s=${encodeURIComponent(BASE_ORIGIN)}`} />
</div>
<Button onClick={handleSignIn} className="small">{t("sign_in")}</Button>
</div>