From 465878588043df19cf9c862198aab27125c8b324 Mon Sep 17 00:00:00 2001 From: Gana016 <jayam.ganapathi12@gmail.com> Date: Thu, 25 Mar 2021 13:16:44 +0530 Subject: [PATCH] update --- digital-course-file/src/user/Sharelink.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/digital-course-file/src/user/Sharelink.js b/digital-course-file/src/user/Sharelink.js index 2ae445a..f221480 100644 --- a/digital-course-file/src/user/Sharelink.js +++ b/digital-course-file/src/user/Sharelink.js @@ -1,7 +1,7 @@ import { React, useState } from 'react' import { Button, Modal, Form } from 'react-bootstrap' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faLink,faPaste } from '@fortawesome/free-solid-svg-icons' +import { faLink, faPaste } from '@fortawesome/free-solid-svg-icons' import { CopyToClipboard } from 'react-copy-to-clipboard' export default function Sharelink({ currentFolder }) { @@ -33,14 +33,13 @@ export default function Sharelink({ currentFolder }) { {'www.dcfstudentview.com/' + String(currentFolder.id)} <p></p> <CopyToClipboard - text={'www.dcfstudentview.com/' + String(currentFolder.id)} - onCopy={() =>setClipBoard(true)} - > - <FontAwesomeIcon icon={faPaste} /> - </CopyToClipboard> - {clipBoard ? <span style={{color: 'red'}}>Copied.</span> : null} + text={'www.dcfstudentview.com/' + String(currentFolder.id)} + onCopy={() => setClipBoard(true)} + > + <FontAwesomeIcon icon={faPaste} /> + </CopyToClipboard> + {clipBoard ? <span style={{ color: 'red' }}>Copied.</span> : null} </Form.Label> - </Form.Group> </Modal.Body> <Modal.Footer> -- GitLab