From df877c6aa59a03cb2d53858c320ee718b50d56c9 Mon Sep 17 00:00:00 2001 From: Artemy Date: Sat, 21 Jan 2023 17:22:06 +0300 Subject: [PATCH] feat: delete local notes --- src/components/button.jsx | 14 +------------- src/pages/note.jsx | 39 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 38 insertions(+), 15 deletions(-) diff --git a/src/components/button.jsx b/src/components/button.jsx index f83689b..0f1ccf4 100644 --- a/src/components/button.jsx +++ b/src/components/button.jsx @@ -3,18 +3,6 @@ import { Link } from "react-router-dom"; function Button(props) { return ( -
- {props.children} -
- - ); -} - -function ButtonWithAction(props) { - return ( -
+

@@ -34,10 +35,44 @@ function Note() { {note.text}

+
+
+ +
+
); } else { - return
; + return ( +
+ +
Заметки не существует.
+
+ ); } }