From 6d7f56fe5861853e300017a6b5a6d33c8459f2f0 Mon Sep 17 00:00:00 2001
From: Spectralitree <72747870+Spectralitree@users.noreply.github.com>
Date: Sat, 17 Jul 2021 15:14:46 +0200
Subject: [PATCH] add templates to memberpage too
---
src/Components/Private/MemberPage.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/Components/Private/MemberPage.js b/src/Components/Private/MemberPage.js
index 1a939961..c991e490 100644
--- a/src/Components/Private/MemberPage.js
+++ b/src/Components/Private/MemberPage.js
@@ -47,7 +47,8 @@ export default function MemberPage(props) {
const {
register: registerEdit,
- handleSubmit: handleSubmitEdit
+ handleSubmit: handleSubmitEdit,
+ setValue
} = useForm();
const {
@@ -285,7 +286,8 @@ export default function MemberPage(props) {
- Description:
+ Description:
+ { localStorage.getItem('template1') ? setValue('description', localStorage.getItem('template1'))}>Template 1 : ""} { localStorage.getItem('template2') ? setValue('description', localStorage.getItem('template2'))}>Template 2 : ""} { localStorage.getItem('template3') ? setValue('description', localStorage.getItem('template3'))}>Template 3 : ""}
setEditMode(false)}>Cancel Submit setOpen(o => !o)}>Delete