Skip to content

Commit 81f3ad1

Browse files
committed
href link updated
1 parent be9e6c5 commit 81f3ad1

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/components/common/Sheet.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react"
22
import styled from "@emotion/styled"
3+
import { FiLink } from "react-icons/fi"
34

45
const SheetContainer = styled.div`
56
& h3 {
@@ -92,7 +93,13 @@ export const Sheet = ({ title, slug, items, onlyCode }) => (
9293
<SheetContainer id={title}>
9394
<SheetTitle className="sheet-title">
9495
<h3>{title}</h3>
95-
<a href={`/${slug}/#${title}`}>লিঙ্ক</a>
96+
<a
97+
href={`${
98+
typeof window !== "undefined" ? window.location.host : ""
99+
}/${slug}#${title}`}
100+
>
101+
লিঙ্ক
102+
</a>
96103
</SheetTitle>
97104
<ul className="single-item">
98105
{items ? (

0 commit comments

Comments
 (0)