Skip to content

Commit 2d4b93b

Browse files
committed
refactor(website): minor improvements
1 parent 7aa0979 commit 2d4b93b

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

packages/plugins/eslint-plugin-react-dom/src/rules/no-missing-iframe-sandbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { getElementRepresentName } from "@eslint-react/core";
12
import * as JSX from "@eslint-react/jsx";
23
import { F, isString, O } from "@eslint-react/tools";
34
import type { CamelCase } from "string-ts";
45

56
import { createRule } from "../utils";
6-
import { getElementRepresentName } from "@eslint-react/core";
77

88
export const RULE_NAME = "no-missing-iframe-sandbox";
99

packages/plugins/eslint-plugin-react-dom/src/rules/no-unsafe-iframe-sandbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { getElementRepresentName } from "@eslint-react/core";
12
import * as JSX from "@eslint-react/jsx";
23
import { F, isString, O } from "@eslint-react/tools";
34
import type { CamelCase } from "string-ts";
45
import { match, P } from "ts-pattern";
56

67
import { createRule } from "../utils";
7-
import { getElementRepresentName } from "@eslint-react/core";
88

99
export const RULE_NAME = "no-unsafe-iframe-sandbox";
1010

website/components/image.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import type { ImageProps as NextImageProps } from "next/image";
1+
import type { ImageProps } from "next/image";
22
import NextImage from "next/image";
33
import React from "react";
44

5-
export const Image = React.memo(
6-
React.forwardRef<HTMLImageElement, NextImageProps>(function Image({ alt, quality = 100, src, ...rest }, ref) {
7-
return <NextImage ref={ref} alt={alt} quality={quality} src={src} {...rest} />;
8-
}),
9-
);
5+
export function Image({ quality = 100, ...rest }: ImageProps) {
6+
return <NextImage quality={quality} {...rest} />;
7+
}

0 commit comments

Comments
 (0)