From 0684fa04ef48e03849eadc6339155841e0bb99bd Mon Sep 17 00:00:00 2001 From: Bernard Date: Wed, 20 Jan 2021 12:23:32 +0100 Subject: [PATCH 1/2] implement edit button --- src/renderer/components/Button/ButtonAction.tsx | 10 ++++++++++ src/renderer/components/Button/buttons.scss | 5 +++-- src/renderer/containers/Validator/Validator.tsx | 4 ++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/renderer/components/Button/ButtonAction.tsx b/src/renderer/components/Button/ButtonAction.tsx index 824afb16..ee0854f9 100644 --- a/src/renderer/components/Button/ButtonAction.tsx +++ b/src/renderer/components/Button/ButtonAction.tsx @@ -4,6 +4,8 @@ import add from "../../assets/img/buttons/Add.svg"; import copyDefault from "../../assets/img/buttons/CopyDefault.svg"; import ReactTooltip from "react-tooltip"; import {getRandomInt} from "../../services/mnemonic/utils/random"; +import {faPen} from "@fortawesome/free-solid-svg-icons"; +import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; export interface IActionButtonProps { onClick?: () => void; @@ -74,6 +76,14 @@ export const AddButton: React.FunctionComponent = ({onClick} ); }; +export const EditButton: React.FunctionComponent = ({onClick}) => { + return ( + + ); +}; + export const BackButton: React.FunctionComponent = ({onClick}) => { return (