From 8e18a66a68d8ca62557d357aa20bd3e32048c321 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Wed, 7 Aug 2024 17:03:07 +0530 Subject: [PATCH] Implement functionality to copy mnemonic --- src/components/Dialog.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Dialog.tsx b/src/components/Dialog.tsx index 63124e7..d907e27 100644 --- a/src/components/Dialog.tsx +++ b/src/components/Dialog.tsx @@ -5,10 +5,13 @@ import styles from '../styles/stylesheet'; import GridView from './Grid'; import { CustomDialogProps } from '../types'; - const DialogComponent = ({ visible, hideDialog, contentText }: CustomDialogProps) => { const words = contentText.split(' '); + const copyMnemonic = () => { + navigator.clipboard.writeText(contentText) + }; + return ( Mnemonic @@ -22,6 +25,7 @@ const DialogComponent = ({ visible, hideDialog, contentText }: CustomDialogProps +