diff --git a/src/modules/blockchains/dapp/components/WhitePaperModal/index.tsx b/src/modules/blockchains/dapp/components/WhitePaperModal/index.tsx index 1e55892ab..28e192a60 100644 --- a/src/modules/blockchains/dapp/components/WhitePaperModal/index.tsx +++ b/src/modules/blockchains/dapp/components/WhitePaperModal/index.tsx @@ -1,5 +1,5 @@ import BaseModal from '@/components/BaseModal'; -import { Button, Flex } from '@chakra-ui/react'; +import { Button, Flex, Text } from '@chakra-ui/react'; import s from './styles.module.scss'; import html2canvas from 'html2canvas'; import jsPDF from 'jspdf'; @@ -51,6 +51,14 @@ const WhitePaperModal = (props: IProps) => { setWhitePaper(res); } + useEffect(() => { + if(whitePaper?.status === 'processing') { + setIsRegenerating(true); + } else { + setIsRegenerating(false); + } + }, [whitePaper]); + const convertMarkdownToHtml = (markdownText: string) => { return marked(markdownText); }; @@ -217,6 +225,11 @@ const WhitePaperModal = (props: IProps) => {
+ { + isRegenerating && ( +