From 6cb5145e851a38727e0c9ce9435c788211f6b953 Mon Sep 17 00:00:00 2001 From: Sebastian Korotkiewicz Date: Thu, 19 Oct 2023 22:43:05 +0200 Subject: [PATCH 1/2] console.log --- src/components/Snip.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Snip.jsx b/src/components/Snip.jsx index c5d07f7..22a0a4b 100644 --- a/src/components/Snip.jsx +++ b/src/components/Snip.jsx @@ -10,7 +10,7 @@ const Snip = ({ events }) => { const { publish } = useNostr(); const onDeleteSnip = (id) => { - console.log("delete", id); + // console.log("delete", id); sendSignEvent({ kind: 5, From 099ba474eab14de89b3924fab33dfc758a67c184 Mon Sep 17 00:00:00 2001 From: Sebastian Korotkiewicz Date: Thu, 19 Oct 2023 22:49:30 +0200 Subject: [PATCH 2/2] debug --- README.md | 13 ++++++++----- src/main.jsx | 5 ++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f768e33..1f2998f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ -# React + Vite +# Sniped -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. +Nostr Social Pastebin -Currently, two official plugins are available: +## Build -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh +``` +yarn +yarn dev +yarn build +``` diff --git a/src/main.jsx b/src/main.jsx index acc1225..67fa2b9 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -14,7 +14,10 @@ const relayUrls = [ ReactDOM.createRoot(document.getElementById("root")).render( - +