From 918a6c4c3209f03b668267f2051c903cb1bfac99 Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Wed, 20 Dec 2023 20:28:07 +0000 Subject: [PATCH 1/5] Fix React tutorial create account --- src/routes/docs/tutorials/react/step-4/+page.markdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/docs/tutorials/react/step-4/+page.markdoc b/src/routes/docs/tutorials/react/step-4/+page.markdoc index a9ed0fb0c1..aafa8ebbc0 100644 --- a/src/routes/docs/tutorials/react/step-4/+page.markdoc +++ b/src/routes/docs/tutorials/react/step-4/+page.markdoc @@ -36,7 +36,7 @@ export function UserProvider(props) { } async function register(email, password) { - await account.create(email, password); + await account.create(ID.unique(), email, password, name); await login(email, password); } From 80798ac7d474a3fa451af47deb8828ef0b151c77 Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Wed, 20 Dec 2023 20:54:50 +0000 Subject: [PATCH 2/5] No name :) --- src/routes/docs/tutorials/react/step-4/+page.markdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/docs/tutorials/react/step-4/+page.markdoc b/src/routes/docs/tutorials/react/step-4/+page.markdoc index aafa8ebbc0..a694587643 100644 --- a/src/routes/docs/tutorials/react/step-4/+page.markdoc +++ b/src/routes/docs/tutorials/react/step-4/+page.markdoc @@ -36,7 +36,7 @@ export function UserProvider(props) { } async function register(email, password) { - await account.create(ID.unique(), email, password, name); + await account.create(ID.unique(), email, password); await login(email, password); } From ecb85185724e72cd5a75e49a5fc847ba2a9e8d06 Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Thu, 21 Dec 2023 14:31:59 -0500 Subject: [PATCH 3/5] Update src/routes/docs/tutorials/react/step-4/+page.markdoc Co-authored-by: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com> --- src/routes/docs/tutorials/react/step-4/+page.markdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/docs/tutorials/react/step-4/+page.markdoc b/src/routes/docs/tutorials/react/step-4/+page.markdoc index a694587643..06879f44a3 100644 --- a/src/routes/docs/tutorials/react/step-4/+page.markdoc +++ b/src/routes/docs/tutorials/react/step-4/+page.markdoc @@ -36,7 +36,7 @@ export function UserProvider(props) { } async function register(email, password) { - await account.create(ID.unique(), email, password); + await account.create(ID.unique(), email, password); await login(email, password); } From 5a0973ad78866a05b15147c5dbabc052a0bb4cab Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Mon, 15 Jan 2024 20:49:47 +0000 Subject: [PATCH 4/5] Add missing ID import --- src/routes/docs/tutorials/react/step-4/+page.markdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/docs/tutorials/react/step-4/+page.markdoc b/src/routes/docs/tutorials/react/step-4/+page.markdoc index a694587643..bb665bf3bf 100644 --- a/src/routes/docs/tutorials/react/step-4/+page.markdoc +++ b/src/routes/docs/tutorials/react/step-4/+page.markdoc @@ -14,7 +14,7 @@ Create a new file `src/lib/context/user.jsx` and add the following code to it. ```js import { createContext, useContext, useEffect, useState } from "react"; -import { account } from "../appwrite"; +import { account, ID } from "../appwrite"; const UserContext = createContext(); From 92a71f1907deeb9eae9859464eb6160e229db332 Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Tue, 16 Jan 2024 19:37:02 +0000 Subject: [PATCH 5/5] Fix missing imports --- src/routes/docs/tutorials/react/step-3/+page.markdoc | 2 +- src/routes/docs/tutorials/react/step-4/+page.markdoc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/tutorials/react/step-3/+page.markdoc b/src/routes/docs/tutorials/react/step-3/+page.markdoc index 5c378cfb99..ee6269d6d7 100644 --- a/src/routes/docs/tutorials/react/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/react/step-3/+page.markdoc @@ -31,7 +31,7 @@ You can skip optional steps. # Initialize Appwrite SDK {% #init-sdk %} -To use Appwrite in our Svelte app, we'll need to find our project ID. Find your project's ID in the **Settings** page. +To use Appwrite in our React app, we'll need to find our project ID. Find your project's ID in the **Settings** page. {% only_dark %} ![Project settings screen](/images/docs/quick-starts/dark/project-id.png) diff --git a/src/routes/docs/tutorials/react/step-4/+page.markdoc b/src/routes/docs/tutorials/react/step-4/+page.markdoc index c2f1e547d3..af576f745b 100644 --- a/src/routes/docs/tutorials/react/step-4/+page.markdoc +++ b/src/routes/docs/tutorials/react/step-4/+page.markdoc @@ -13,8 +13,9 @@ We'll use context and a custom hook to manage our user's data. Create a new file `src/lib/context/user.jsx` and add the following code to it. ```js +import { ID } from "appwrite"; import { createContext, useContext, useEffect, useState } from "react"; -import { account, ID } from "../appwrite"; +import { account } from "../appwrite"; const UserContext = createContext();