File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/react-renderer-demo/src Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
33import IconButton from '@mui/material/IconButton' ;
44import CopyToClipboard from 'react-copy-to-clipboard' ;
55import SvgIcon from '@mui/material/SvgIcon' ;
6+ import { urlFormatter } from '../../helpers/url-formatter' ;
67
78const HashTagSvg = ( props ) => (
89 // eslint-disable-next-line max-len
@@ -15,7 +16,7 @@ const HashTagSvg = (props) => (
1516) ;
1617
1718const ShareButton = ( { path } ) => (
18- < CopyToClipboard text = { path } >
19+ < CopyToClipboard text = { urlFormatter ( path ) } >
1920 < IconButton size = "medium" >
2021 < SvgIcon fontSize = "small" viewBox = "0 0 48 48" >
2122 < HashTagSvg />
Original file line number Diff line number Diff line change 1+ export const urlFormatter = ( initPath ) => {
2+ const url = process . env . NEXT_PUBLIC_VERCEL_URL ;
3+
4+ return `https://${ url + initPath } ` ;
5+ } ;
You can’t perform that action at this time.
0 commit comments