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/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, 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( - +