diff --git a/TODO.md b/TODO.md index e73af00..0de317e 100644 --- a/TODO.md +++ b/TODO.md @@ -24,5 +24,7 @@ GLobal open orders checker in Admin -> show toast, count badge over open orders Server actions errors - show friendly error message in modal / parallel route - language switch in menu - non-free tiers 360 view? -pricing - nm scans a month -info icon on Price card \ No newline at end of file +pricing - number of scans per month +info icon on Price card +/docs route - GitBook? https://docusaurus.io/docs/playground? +custom layouts \ No newline at end of file diff --git a/package.json b/package.json index e1a1c95..ff5d856 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "next-menu", - "version": "0.0.72", + "version": "0.0.73", "private": true, "type": "module", "scripts": { diff --git a/public/classic 1920s style, generate an image of a phone scanning a qr code on a restaurant table. transparent background.png b/public/classic 1920s style, generate an image of a phone scanning a qr code on a restaurant table. transparent background.png new file mode 100644 index 0000000..4f8fc0a Binary files /dev/null and b/public/classic 1920s style, generate an image of a phone scanning a qr code on a restaurant table. transparent background.png differ diff --git a/src/app/sign-up/[[...sign-up]]/page.tsx b/src/app/sign-up/[[...sign-up]]/page.tsx index dc5f67c..7df9c78 100644 --- a/src/app/sign-up/[[...sign-up]]/page.tsx +++ b/src/app/sign-up/[[...sign-up]]/page.tsx @@ -31,6 +31,7 @@ export default async function SignUpPage(props: { searchParams: SearchParams }) return ( + {props.showSignInLink && ( + +
+ + I already have an account + +
+
+ )}
diff --git a/src/domain/landing-content.ts b/src/domain/landing-content.ts index b8d870f..8cebcee 100644 --- a/src/domain/landing-content.ts +++ b/src/domain/landing-content.ts @@ -29,7 +29,7 @@ export const sections: Record = { id: 'pricing', header: { label: 'Pricing', - title: 'Plans for teams of all sizes', + title: 'Plans for any business size', secondary: 'No strings attached. Upgrade, downgrade or cancel instantly, anytime.', }, }, diff --git a/src/middleware.ts b/src/middleware.ts index bbae72e..a1151cf 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -39,7 +39,11 @@ export default clerkMiddleware( // If the user is signed in and accessing the /my route, redirect them // to their actual dashboard URL if possible. - if (userId && isMyRoute(req)) { + if (isMyRoute(req)) { + if (!userId) { + return redirectTo(req, ROUTES.signIn); + } + if (!orgId) { console.log(`DBG-MDLW [/my] Redirecting to ${ROUTES.onboardAddOrg} - no orgId`); return redirectTo(req, ROUTES.onboardAddOrg);