Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(code-block): Typo "PrismLanguage" #1783

Merged
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
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
Loading