Skip to content

Commit 5d671c9

Browse files
authored
Minor internal fixes (tailwindlabs#1967)
* Minor grammar fix in comment * Remove unused useEffect * Replace deprecated HTMLDocument with Document * Remove unused imports
1 parent 63ebef0 commit 5d671c9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/app/blog/[slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { formatDate, getBlogPostBySlug, getBlogPostSlugs } from "../api";
44
import Image from "next/image";
55
import { NewsletterForm } from "@/components/newsletter-form";
66
import GridContainer from "@/components/grid-container";
7-
import type { Metadata, ResolvingMetadata } from "next/types";
7+
import type { Metadata } from "next/types";
88

99
type Props = {
1010
params: Promise<{

src/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@theme {
1515
--animate-flash-code: flash-code 2s forwards;
1616

17-
/* This uses --color-sky-500 but it's inlined because of an bug in chrome */
17+
/* This uses --color-sky-500 but it's inlined because of a bug in chrome */
1818
@keyframes flash-code {
1919
0% {
2020
background-color: oklch(0.685 0.169 237.323 / 10%);

src/components/dynamic-viewport-example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import React, { useState, useRef, useEffect } from "react";
3+
import React, { useState, useRef } from "react";
44
import { motion, useScroll, useMotionValueEvent } from "framer-motion";
55
import clsx from "clsx";
66
import { Stripes } from "./stripes";

src/components/iframe.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function Iframe({ children, ...props }: React.ComponentProps<"iframe">) {
1616

1717
// We need to add `light` or `dark` to the <html> element in the iframe
1818
// for Safari to work properly
19-
let root = mountNode.getRootNode() as HTMLDocument;
19+
let root = mountNode.getRootNode() as Document;
2020
if (root) {
2121
root.documentElement.className = theme as string;
2222
}

src/mdx-components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MDXComponents } from "mdx/types";
2-
import React, { ReactNode, useId } from "react";
2+
import React, { ReactNode } from "react";
33
import { CodeExample } from "./components/code-example";
44
import Link from "next/link";
55

0 commit comments

Comments
 (0)