Skip to content

Commit ac0ab6c

Browse files
committed
fix: compilation
1 parent ff24144 commit ac0ab6c

File tree

4 files changed

+6
-55
lines changed

4 files changed

+6
-55
lines changed

src/components/CardComponents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function CardSection({
1616
children: ReactNode;
1717
description?: ReactNode;
1818
hasSubSections?: boolean;
19-
HeadingTag?: keyof JSX.IntrinsicElements;
19+
HeadingTag?: React.ElementType;
2020
className?: string;
2121
}) {
2222
return (
@@ -42,7 +42,7 @@ export function Card({
4242
tag,
4343
}: PropsWithChildren<{
4444
id?: string;
45-
icon?: JSX.Element;
45+
icon?: ReactNode;
4646
title: string;
4747
description?: string;
4848
to: string;

src/components/HomepageFeatures.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import clsx from 'clsx';
2+
import type { JSX, ReactNode } from 'react';
23
import styles from './HomepageFeatures.module.css';
34

45
type FeatureItem = {
56
title: string;
67
image: string;
7-
description: JSX.Element;
8+
description: ReactNode;
89
};
910

1011
const FeatureList: FeatureItem[] = [

src/pages/index.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,15 @@ function HomepageHeader() {
2626
);
2727
}
2828

29-
export default function Home(): JSX.Element {
29+
export default function Home() {
3030
const { siteConfig } = useDocusaurusContext();
3131
return (
3232
<Layout
3333
title={`${siteConfig.title}`}
3434
description="The Blockchain Transformation platform for developers to rapidly build blockchain applications."
3535
>
3636
<Head>
37-
<script
38-
data-jsd-embedded
39-
data-key="5d7a0f9b-1691-4f56-9da7-95e3526950fb"
40-
data-base-url="https://jsd-widget.atlassian.com"
41-
src="https://jsd-widget.atlassian.com/assets/embed.js"
42-
/>
37+
<title>{siteConfig.title}</title>
4338
</Head>
4439
<HomepageHeader />
4540
<main />

theme/index.tsx

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -9,50 +9,6 @@ import platformScreenshot from "../static/img/about-settlemint/platformScreensho
99
import supportIcon from "../static/img/about-settlemint/support-icon.png";
1010
import styles from "./styles.module.css";
1111

12-
function context() {
13-
const { siteConfig } = context;
14-
const { themeConfig } = siteConfig;
15-
const { hotjar } = themeConfig || {};
16-
17-
if (!hotjar) {
18-
throw new Error(
19-
`Create a 'hotjar' object containing a 'siteId' property in 'themeConfig'.`
20-
);
21-
}
22-
23-
const { siteId } = hotjar;
24-
25-
if (!siteId) {
26-
throw new Error(
27-
"Error in `themeConfig`. `hotjar` object found but `siteId` prop is missing."
28-
);
29-
}
30-
31-
return {
32-
name: "docusaurus-plugin-hotjar",
33-
34-
injectHtmlTags() {
35-
return {
36-
headTags: [
37-
{
38-
tagName: "script",
39-
innerHTML: `
40-
(function(h,o,t,j,a,r){
41-
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
42-
h._hjSettings={hjid:2683117,hjsv:6};
43-
a=o.getElementsByTagName('head')[0];
44-
r=o.createElement('script');r.async=1;
45-
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
46-
a.appendChild(r);
47-
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
48-
`,
49-
},
50-
],
51-
};
52-
},
53-
};
54-
}
55-
5612
function Navigation() {
5713
return (
5814
<main id="main-content">
@@ -74,7 +30,6 @@ function Navigation() {
7430
fragmented blockchain tooling ecosystem.
7531
</p>
7632
<p>
77-
{" "}
7833
It offers a unified developer experience for building blockchain
7934
applications <br />
8035
through a combination of familiar and custom tools.{" "}

0 commit comments

Comments
 (0)