diff --git a/global.d.ts b/global.d.ts new file mode 100644 index 00000000..baea0917 --- /dev/null +++ b/global.d.ts @@ -0,0 +1,8 @@ +declare module "react" { + export interface HTMLAttributes extends AriaAttributes, DOMAttributes { + "data-hide-print"?: boolean + "aria-hidden"?: boolean + } +} + +export {} diff --git a/src/components/common/BlockchainInfo.tsx b/src/components/common/BlockchainInfo.tsx index ffdf05a2..f35794da 100644 --- a/src/components/common/BlockchainInfo.tsx +++ b/src/components/common/BlockchainInfo.tsx @@ -21,6 +21,7 @@ export const BlockchainInfo: React.FC<{ diff --git a/src/components/common/Comment.tsx b/src/components/common/Comment.tsx index 34de805a..f38b0bcb 100644 --- a/src/components/common/Comment.tsx +++ b/src/components/common/Comment.tsx @@ -16,7 +16,11 @@ export const Comment: React.FC<{ const { t } = useTranslation("common") return ( -
+
{comments.isLoading diff --git a/src/components/common/Reactions.tsx b/src/components/common/Reactions.tsx index 8c335620..a19ed635 100644 --- a/src/components/common/Reactions.tsx +++ b/src/components/common/Reactions.tsx @@ -155,6 +155,7 @@ export const Reactions: React.FC<{ size === "sm" ? "text-sm space-x-3" : "space-x-6 sm:space-x-10", className, )} + data-hide-print >