From c1ef2a0bba799dd3be9e2b733e5f24848f7ee937 Mon Sep 17 00:00:00 2001 From: Bogdan Carpusor Date: Thu, 5 Dec 2024 09:44:46 +0200 Subject: [PATCH] Add references to the user management dashboard in the quickstart --- v2/emailpassword/quickstart/introduction.mdx | 2 ++ v2/passwordless/quickstart/introduction.mdx | 2 ++ v2/src/components/question/index.tsx | 6 +++--- v2/thirdparty/quickstart/introduction.mdx | 2 ++ v2/thirdpartyemailpassword/quickstart/introduction.mdx | 2 ++ v2/thirdpartypasswordless/quickstart/introduction.mdx | 2 ++ 6 files changed, 13 insertions(+), 3 deletions(-) diff --git a/v2/emailpassword/quickstart/introduction.mdx b/v2/emailpassword/quickstart/introduction.mdx index 753a279f6..dec5311fc 100644 --- a/v2/emailpassword/quickstart/introduction.mdx +++ b/v2/emailpassword/quickstart/introduction.mdx @@ -28,6 +28,8 @@ If you want to skip straight to an example application you can choose between: npx create-supertokens-app@latest --recipe=^{docsLinkRecipeName} ``` +You can also get an example of our **User Management Dashboard** through [this page](https://dashboard.demo.supertokens.com/api/auth/dashboard). +Use the following credentials to log in: `demo@supertokens.com`, `abcd1234`. diff --git a/v2/passwordless/quickstart/introduction.mdx b/v2/passwordless/quickstart/introduction.mdx index 999ee8d87..9b8b548ec 100644 --- a/v2/passwordless/quickstart/introduction.mdx +++ b/v2/passwordless/quickstart/introduction.mdx @@ -28,6 +28,8 @@ If you want to skip straight to an example application you can choose between: npx create-supertokens-app@latest --recipe=^{docsLinkRecipeName} ``` +You can also get an example of our **User Management Dashboard** through [this page](https://dashboard.demo.supertokens.com/api/auth/dashboard). +Use the following credentials to log in: `demo@supertokens.com`, `abcd1234`. diff --git a/v2/src/components/question/index.tsx b/v2/src/components/question/index.tsx index 6d5b23c7b..1ad364ee7 100644 --- a/v2/src/components/question/index.tsx +++ b/v2/src/components/question/index.tsx @@ -23,14 +23,15 @@ const LOCAL_STORAGE_KEY_PREFIX = "supertokens-question-answer:"; export function Question( props: PropsWithChildren<{ - question: string; + question: string | (() => string); defaultAnswer?: string; }>, ) { - const { defaultAnswer, question, children } = props; + const { defaultAnswer, question: _question, children } = props; const [selectedAnswer, setSelectedAnswer] = useState( defaultAnswer, ); + const question = typeof _question === "string" ? _question : _question(); const onSelectAnswer = useCallback((answer: string) => { setSelectedAnswer(answer); @@ -93,4 +94,3 @@ export function Answer(props: PropsWithChildren) { ); } - diff --git a/v2/thirdparty/quickstart/introduction.mdx b/v2/thirdparty/quickstart/introduction.mdx index 3c3a16d53..a0fccc8d9 100644 --- a/v2/thirdparty/quickstart/introduction.mdx +++ b/v2/thirdparty/quickstart/introduction.mdx @@ -28,6 +28,8 @@ If you want to skip straight to an example application you can choose between: npx create-supertokens-app@latest --recipe=^{docsLinkRecipeName} ``` +You can also get an example of our **User Management Dashboard** through [this page](https://dashboard.demo.supertokens.com/api/auth/dashboard). +Use the following credentials to log in: `demo@supertokens.com`, `abcd1234`. diff --git a/v2/thirdpartyemailpassword/quickstart/introduction.mdx b/v2/thirdpartyemailpassword/quickstart/introduction.mdx index ea50c2223..52c2f4965 100644 --- a/v2/thirdpartyemailpassword/quickstart/introduction.mdx +++ b/v2/thirdpartyemailpassword/quickstart/introduction.mdx @@ -28,6 +28,8 @@ If you want to skip straight to an example application you can choose between: npx create-supertokens-app@latest --recipe=^{docsLinkRecipeName} ``` +You can also get an example of our **User Management Dashboard** through [this page](https://dashboard.demo.supertokens.com/api/auth/dashboard). +Use the following credentials to log in: `demo@supertokens.com`, `abcd1234`. diff --git a/v2/thirdpartypasswordless/quickstart/introduction.mdx b/v2/thirdpartypasswordless/quickstart/introduction.mdx index 68de22862..7f960d859 100644 --- a/v2/thirdpartypasswordless/quickstart/introduction.mdx +++ b/v2/thirdpartypasswordless/quickstart/introduction.mdx @@ -28,6 +28,8 @@ If you want to skip straight to an example application you can choose between: npx create-supertokens-app@latest --recipe=^{docsLinkRecipeName} ``` +You can also get an example of our **User Management Dashboard** through [this page](https://dashboard.demo.supertokens.com/api/auth/dashboard). +Use the following credentials to log in: `demo@supertokens.com`, `abcd1234`.