Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/BaseComponents/Markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { okaidia } from "react-syntax-highlighter/dist/esm/styles/prism";
import remarkGfm from "remark-gfm";
import styles from "./styles.module.scss";
import React from "react";
import RightSvg from "../@site/static/icons/arrowright.svg";
import { FaArrowRight } from "react-icons/fa";

interface IProps {
textContent: string;
Expand Down Expand Up @@ -45,7 +45,7 @@ const AskDatabendMarkdown: FC<IProps> = ({ textContent }): ReactElement => {
setIsCopy(true);
}}
>
{isCopy ? <RightSvg /> : <>Copy</>}
{isCopy ? <FaArrowRight /> : <>Copy</>}
</span>
</div>
) : (
Expand Down
54 changes: 0 additions & 54 deletions src/components/CookiesConsent/index.js

This file was deleted.

78 changes: 0 additions & 78 deletions src/components/CookiesConsent/styles.module.scss

This file was deleted.

5 changes: 3 additions & 2 deletions src/components/CopyPageButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { useState, useMemo, useCallback } from "react";
import { Button, Dropdown, Flex, Spin } from "antd";
import styles from "./styles.module.scss";
import DownArrow from "@site/static/icons/down.svg";
import { FaAngleDown } from "react-icons/fa6";

import { useDoc } from "@docusaurus/plugin-content-docs/client";
import axios from "axios";
import $t from "@site/src/utils/tools";
Expand Down Expand Up @@ -170,7 +171,7 @@ const CopyDropdownButton: React.FC = () => {
onClick={() => handleCopy(sourceUrl)}
menu={menu}
placement="bottomRight"
icon={<DownArrow className={styles.svg} width={18} height={18} />}
icon={<FaAngleDown className={styles.svg} />}
className={styles.buttonCainter}
trigger={["click"]}
>
Expand Down
2 changes: 2 additions & 0 deletions src/components/CopyPageButton/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
}
}
.svg {
position: relative;
top: 1px !important;
path {
fill: var(--color-text-0) !important;
}
Expand Down
3 changes: 1 addition & 2 deletions src/theme/DocCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { translate } from "@docusaurus/Translate";
import DocsSvg from "@site/static/icons/docs.svg";
import FolderSvg from "@site/static/icons/folder.svg";

import type { Props } from "@theme/DocCard";
// import Heading from "@theme/Heading";
import type {
PropSidebarItemCategory,
Expand Down Expand Up @@ -115,7 +114,7 @@ function CardLink({ item }: { item: PropSidebarItemLink }): ReactNode {
);
}

export default function DocCard({ item }: Props): ReactNode {
export default function DocCard({ item }: any): ReactNode {
switch (item.type) {
case "link":
return <CardLink item={item} />;
Expand Down
5 changes: 3 additions & 2 deletions src/theme/DocItem/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import React, { type ReactNode } from "react";
import clsx from "clsx";
import { ThemeClassNames } from "@docusaurus/theme-common";
import { useDoc } from "@docusaurus/plugin-content-docs/client";
// @ts-ignore
import Heading from "@theme/Heading";
// @ts-ignore
import MDXContent from "@theme/MDXContent";
import type { Props } from "@theme/DocItem/Content";
import styles from "./styles.module.css";
import CopyPageButton from "@site/src/components/CopyPageButton";

Expand All @@ -28,7 +29,7 @@ function useSyntheticTitle(): string | null {
return metadata.title;
}

export default function DocItemContent({ children }: Props): ReactNode {
export default function DocItemContent({ children }: any): ReactNode {
const syntheticTitle = useSyntheticTitle();
return (
<div className={clsx(ThemeClassNames.docs.docMarkdown, "markdown")}>
Expand Down
Loading