Skip to content

Commit ae4f590

Browse files
authored
switch url from localhost to prod (#2046)
* switch url from localhost to prod * modify links
1 parent 1663ad6 commit ae4f590

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

components/hearing/Transcriptions.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import {
1515
} from "./hearing"
1616
import { ShareLinkButton } from "components/buttons"
1717

18+
import { siteUrl } from "components/links"
19+
1820
const ClearButton = styled(FontAwesomeIcon)`
1921
position: absolute;
2022
right: 3rem;
@@ -386,9 +388,9 @@ const TranscriptItem = forwardRef(function TranscriptItem(
386388
<>
387389
<ShareLinkButton
388390
key="copy"
389-
text={`http://localhost:3000/hearing/${hearingId}?t=${formatTotalSeconds(
390-
element.start
391-
)}`}
391+
text={siteUrl(
392+
`hearing/${hearingId}?t=${formatTotalSeconds(element.start)}`
393+
)}
392394
className={`copy my-1 px-1 py-0`}
393395
format="text/plain"
394396
onMouseEnter={() => setIsHovered(true)}

0 commit comments

Comments
 (0)