diff --git a/manager_dashboard/src/pages/Settings/sections/SystemSettings.jsx b/manager_dashboard/src/pages/Settings/sections/SystemSettings.jsx index 14f769f..d46a637 100644 --- a/manager_dashboard/src/pages/Settings/sections/SystemSettings.jsx +++ b/manager_dashboard/src/pages/Settings/sections/SystemSettings.jsx @@ -6,12 +6,12 @@ import { useState } from 'react' import { useMutation, useQueryClient } from '@tanstack/react-query' import toast from 'react-hot-toast' -import { QRCodeSVG } from 'qrcode.react' -import { Lock, LockOpen, QrCode, RefreshCw } from 'lucide-react' +import { Lock, LockOpen, QrCode as QrIcon, RefreshCw } from 'lucide-react' import { useAccess } from '@xenia/access' import { errorMessage } from '@xenia/api' import { useFormat, useTranslation } from '@xenia/i18n' import { Button, Dialog, Input, Spinner } from '@xenia/ui' +import { QrCode } from '@xenia/ui/qr' import client from '../../../api/client' import { useLiveQuery } from '../../../live/useLiveQuery' import { Pill } from '../../overview/parts' @@ -67,7 +67,7 @@ export default function SystemSettings() { {status?.waiter_domain && ( {status.waiter_domain} - + )} @@ -101,7 +101,7 @@ export default function SystemSettings() { setQr(null)} title={t('settings.system.qrTitle')} description={qr.caption} footer={}>
-
+

{qr.url}

@@ -155,7 +155,7 @@ function LanAccess({ status, onQr }) { http://{ip} - diff --git a/manager_dashboard/src/pages/online/OrderingLink.jsx b/manager_dashboard/src/pages/online/OrderingLink.jsx index 9354048..c490b29 100644 --- a/manager_dashboard/src/pages/online/OrderingLink.jsx +++ b/manager_dashboard/src/pages/online/OrderingLink.jsx @@ -3,10 +3,10 @@ // as a QR code for flyers and the shop window. GET /api/connect/fees → links.order (the cloud // tells the venue where the customer apps live: PUBLIC_APPS_URL, sent with the heartbeat). import toast from 'react-hot-toast' -import { QRCodeSVG } from 'qrcode.react' import { Copy, ExternalLink, Printer } from 'lucide-react' import { useTranslation } from '@xenia/i18n' import { Button } from '@xenia/ui' +import { QrCode } from '@xenia/ui/qr' export default function OrderingLink({ url }) { const { t } = useTranslation('manager') @@ -15,7 +15,7 @@ export default function OrderingLink({ url }) { } return (
-
+

{t('orderingLink.intro')}

diff --git a/manager_dashboard/src/pages/online/QrCodesPage.jsx b/manager_dashboard/src/pages/online/QrCodesPage.jsx index 1bfd90d..034d6e7 100644 --- a/manager_dashboard/src/pages/online/QrCodesPage.jsx +++ b/manager_dashboard/src/pages/online/QrCodesPage.jsx @@ -6,11 +6,11 @@ // Backend: /api/connect/qr (connect_menu.manage), services/table_qr.py. import { useCallback, useEffect, useState } from 'react' import toast from 'react-hot-toast' -import { QRCodeSVG } from 'qrcode.react' import { Printer, RefreshCw } from 'lucide-react' import { errorMessage } from '@xenia/api' import { useTranslation } from '@xenia/i18n' import { Button, Dialog, EmptyState, Spinner, Switch } from '@xenia/ui' +import { QrCode } from '@xenia/ui/qr' import client from '../../api/client' export default function QrCodesPage() { @@ -60,7 +60,7 @@ export default function QrCodesPage() {
  • {t('qr.table', { name: tb.name })} {tb.group && {tb.group}} - + {t(data.ordering ? 'qr.scanOrder' : 'qr.scanRead')}