From 3cf7f0543db22c9e4379838d588970ed5222f00f Mon Sep 17 00:00:00 2001 From: Sal Rahman Date: Mon, 28 Aug 2023 10:03:40 -0700 Subject: [PATCH] FfQrCode -> MkQrCode --- packages/client/src/components/{FfQrCode.vue => MkQrCode.vue} | 2 -- packages/client/src/os.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) rename packages/client/src/components/{FfQrCode.vue => MkQrCode.vue} (96%) diff --git a/packages/client/src/components/FfQrCode.vue b/packages/client/src/components/MkQrCode.vue similarity index 96% rename from packages/client/src/components/FfQrCode.vue rename to packages/client/src/components/MkQrCode.vue index 9dca107406..c5a389b095 100644 --- a/packages/client/src/components/FfQrCode.vue +++ b/packages/client/src/components/MkQrCode.vue @@ -20,8 +20,6 @@ import MkButton from "@/components/MkButton.vue"; import { i18n } from "@/i18n"; import QRCodeVue3 from "qrcode-vue3"; -// const profileUrl = window.location.href; - const props = defineProps<{ qrCode: string }>(); diff --git a/packages/client/src/os.ts b/packages/client/src/os.ts index 2c65477b7c..80ad8631bf 100644 --- a/packages/client/src/os.ts +++ b/packages/client/src/os.ts @@ -9,7 +9,7 @@ import MkPostFormDialog from "@/components/MkPostFormDialog.vue"; import MkWaitingDialog from "@/components/MkWaitingDialog.vue"; import MkToast from "@/components/MkToast.vue"; import MkDialog from "@/components/MkDialog.vue"; -import FfQrCode from "@/components/FfQrCode.vue"; +import MkQrCode from "@/components/MkQrCode.vue"; import { MenuItem } from "@/types/menu"; import { $i } from "@/account"; import { i18n } from "./i18n"; @@ -930,7 +930,7 @@ export function post(props: Record = {}) { export async function displayQrCode(qrCode: string) { (await new Promise<(() => void) | undefined>((resolve) => { let dispose: (() => void) | undefined; - popup(FfQrCode, { qrCode }, { + popup(MkQrCode, { qrCode }, { closed: () => { resolve(dispose); }