Skip to content

Commit

Permalink
fix(code-block): Typo "PrismLanguage" (#1783)
Browse files Browse the repository at this point in the history
Co-authored-by: gabriel miranda <[email protected]>
  • Loading branch information
action-simon and gabrielmfern authored Nov 20, 2024
1 parent 54383e1 commit 0c899b1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-beers-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-email/code-block": patch
---

Fix typo in the PrismLanguage type
4 changes: 2 additions & 2 deletions packages/code-block/src/code-block.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -16,7 +16,7 @@ export type CodeBlockProps = Readonly<{
fontFamily?: string;

theme: Theme;
language: PrismLangauge;
language: PrismLanguage;
code: string;
}>;

Expand Down
2 changes: 1 addition & 1 deletion packages/code-block/src/languages-available.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type PrismLangauge =
export type PrismLanguage =
| "markup"
| "html"
| "xml"
Expand Down
4 changes: 2 additions & 2 deletions packages/tailwind/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ and the class names associated with them on a `<style>` tag on the `<head>` elem

### The treatment for Tailwind's CSS variables

Emails don't really have great support for CSS variables,
so we needed to use a custom postcss plugin alongisde Tailwind to resolve
Emails don't really have great support for CSS variables,
so we needed to use a custom postcss plugin alongisde Tailwind to resolve
all of these variables. When the plugin finds a CSS Variable that it cannot resolve,
it leaves it without any changes.

Expand Down

0 comments on commit 0c899b1

Please sign in to comment.