From 92594b8201847455662f4d6fbe3403e959c4f644 Mon Sep 17 00:00:00 2001 From: action-simon Date: Wed, 20 Nov 2024 15:29:50 +0100 Subject: [PATCH] fix(code-block): Typo "PrismLanguage" (#1783) Co-authored-by: gabriel miranda --- .changeset/shaggy-beers-leave.md | 5 +++++ packages/code-block/src/code-block.tsx | 4 ++-- packages/code-block/src/languages-available.ts | 2 +- packages/tailwind/readme.md | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .changeset/shaggy-beers-leave.md diff --git a/.changeset/shaggy-beers-leave.md b/.changeset/shaggy-beers-leave.md new file mode 100644 index 0000000000..f110be0336 --- /dev/null +++ b/.changeset/shaggy-beers-leave.md @@ -0,0 +1,5 @@ +--- +"@react-email/code-block": patch +--- + +Fix typo in the PrismLanguage type diff --git a/packages/code-block/src/code-block.tsx b/packages/code-block/src/code-block.tsx index f70b886cb7..c559a99e03 100644 --- a/packages/code-block/src/code-block.tsx +++ b/packages/code-block/src/code-block.tsx @@ -1,6 +1,6 @@ /* eslint-disable react/no-array-index-key */ import * as React from "react"; -import type { PrismLangauge } from "./languages-available"; +import type { PrismLanguage } from "./languages-available"; import type { Theme } from "./themes"; import { Prism } from "./prism"; @@ -16,7 +16,7 @@ export type CodeBlockProps = Readonly<{ fontFamily?: string; theme: Theme; - language: PrismLangauge; + language: PrismLanguage; code: string; }>; diff --git a/packages/code-block/src/languages-available.ts b/packages/code-block/src/languages-available.ts index b73772a391..81ebd1cf65 100644 --- a/packages/code-block/src/languages-available.ts +++ b/packages/code-block/src/languages-available.ts @@ -1,4 +1,4 @@ -export type PrismLangauge = +export type PrismLanguage = | "markup" | "html" | "xml" diff --git a/packages/tailwind/readme.md b/packages/tailwind/readme.md index c8025970c6..46559c5ea2 100644 --- a/packages/tailwind/readme.md +++ b/packages/tailwind/readme.md @@ -77,8 +77,8 @@ and the class names associated with them on a `