Skip to content

Commit

Permalink
fix sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
yliuuuu committed Jan 24, 2024
1 parent 201d95c commit 5da7b4c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/component/Modal/ExportModal.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Alert, Box, Button, Modal, Typography} from "@mui/material";
import {Alert, Box, Button, Modal, TextField} from "@mui/material";
import React, {useContext, useEffect} from "react";
import AppContext from "../../store/app-context";
import {useLocation} from "react-router-dom";
Expand Down Expand Up @@ -46,9 +46,12 @@ export function ExportModal(props) {
>
<Box sx={style}>
<Alert severity="warning">Do not use the link to store data. </Alert>
<Typography id="modal-modal-title" variant="h6" component="h2" style={{wordWrap: "break-word"}}>
{url}
</Typography>
<TextField
disabled
label="url"
id="modal-modal-title"
value= {url}
/>
<Button
onClick={() => {
navigator.clipboard.writeText(url)
Expand Down

0 comments on commit 5da7b4c

Please sign in to comment.