From 2a91a6d65d006c5e16dbb203a1bd298336c7212b Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Thu, 23 Sep 2021 19:33:16 +0900 Subject: [PATCH] Added a big thumbs up. --- src/App.js | 1 + src/TestPanel.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 9854d9f..2c28b9a 100644 --- a/src/App.js +++ b/src/App.js @@ -379,6 +379,7 @@ function AdminPanel(p) { {page:"Potential Data",url:"/admin/potentialdata",table:"/potential_data"}, {hr:true}, {page:"Builds",url:"/admin/builds",table:"/builds"}, + {page:"Likes",url:"/admin/likes",table:"/like_data"}, {hr:true}, {page:"Skills",url:"/admin/skills",table:"/skill"}, {page:"Skill Types",url:"/admin/skilltypes",table:"/skill_type"}, diff --git a/src/TestPanel.js b/src/TestPanel.js index 6647edf..7a856fa 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -1,4 +1,4 @@ -import {PencilFill,Save} from 'react-bootstrap-icons' +import {PencilFill,Save,HandThumbsUp,HandThumbsUpFill} from 'react-bootstrap-icons' import React, { useEffect,useState } from 'react'; import Modal from 'react-modal' import { DisplayIcon } from './DEFAULTS'; @@ -468,6 +468,7 @@ const [prevFoodPointData,setPrevFoodPointData] = useState({}) const [BUFFS,setBUFFS] = useState({}) const [buildLoad,setBuildLoad] = useState(false) +const [liked,setLiked] = useState(false) function SaveData() { var saveObj = { @@ -638,7 +639,7 @@ function deepCopySkills(skillData) {
-

Basic Information

+

Basic Information

{liked?{setLiked(false)}}/>:{setLiked(true)}}/>}
{setLiked(!liked)}}>Like!