From 85351eeb688aae2e39147e920b6cf820ada827e8 Mon Sep 17 00:00:00 2001 From: Simon Neveu Date: Tue, 25 Apr 2023 17:38:24 +0700 Subject: [PATCH] Remove outdated instructions Just ran through this tutorial and noticed some outdated instructions. - Tailwind v3 uses the `jit` option by default now so the mode option has been removed. - AuthDetails was being imported from the `@stacks/connect` package but no longer exists as an export (and wasn't being used anyway) so created compilation errors - Remove duplicated network variable since it's already been asked to be added below the state declarations --- docs/tutorials/hello-stacks.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/tutorials/hello-stacks.md b/docs/tutorials/hello-stacks.md index a0a442d135..3150b39030 100644 --- a/docs/tutorials/hello-stacks.md +++ b/docs/tutorials/hello-stacks.md @@ -108,12 +108,11 @@ and initialize it with npx tailwindcss init -p ``` -Now we need to tell Tailwind where our content is coming from and change out processing mode to "Just-In-Time" by modifying the `tailwind.config.js` file to look like this. +Now we need to tell Tailwind where our content is coming from by modifying the content config option in the `tailwind.config.js` file to look like this. ```js /** @type {import('tailwindcss').Config} */ module.exports = { - mode: "jit", content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], theme: { extend: {}, @@ -390,7 +389,6 @@ And import a couple things from it at the top of our `App.jsx` file. import { AppConfig, UserSession, - AuthDetails, showConnect, } from "@stacks/connect"; ``` @@ -530,8 +528,6 @@ And finally we can add the code to initiate the transaction. const submitMessage = async (e) => { e.preventDefault(); - const network = new StacksMocknet(); - const options = { contractAddress: "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM", contractName: "hello-stacks",