Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit c05436c

Browse files
committed
fix: fix auto import not fix issues
1 parent ab6048d commit c05436c

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

src/pages/_app.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Head from "next/head";
66
import NavBar from "../layout/NavBar";
77

88
import "./globals.css";
9+
import Image from "next/image";
910

1011
export default function App({ Component, pageProps }: any) {
1112
return (
@@ -33,7 +34,7 @@ export default function App({ Component, pageProps }: any) {
3334
{/* Vercel footer */}
3435
<a className='flex gap-4 items-center' href='https://vercel.com?utm_source=prompt-engineering&utm_campaign=oss'>
3536
<span>Powered by</span>
36-
<img
37+
<Image
3738
src='https://images.ctfassets.net/e5382hct74si/78Olo8EZRdUlcDUFQvnzG7/fa4cdb6dc04c40fceac194134788a0e2/1618983297-powered-by-vercel.svg'
3839
alt='Vercel Logo'
3940
/>

src/pages/chatgpt-samples/[id].tsx

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
11
import type { GetStaticPaths, GetStaticProps } from "next";
22
import React from "react";
3-
import {
4-
Accordion,
5-
AccordionButton,
6-
AccordionIcon,
7-
AccordionItem,
8-
AccordionPanel,
9-
Box,
10-
Flex,
11-
Grid,
12-
GridItem,
13-
Heading,
14-
Link,
15-
SimpleGrid,
16-
Spacer,
17-
Tooltip,
18-
Center,
19-
} from "@chakra-ui/react";
3+
import { Box, Flex, Heading, Link, Spacer, Tooltip } from "@chakra-ui/react";
204
import styled from "@emotion/styled";
21-
import { ExternalLinkIcon, LinkIcon, QuestionIcon } from "@chakra-ui/icons";
5+
import { ExternalLinkIcon } from "@chakra-ui/icons";
226
import CopyComponent from "@/components/CopyComponent";
237
import SimpleMarkdown from "@/components/SimpleMarkdown";
24-
import { ChatGptIcon } from "@/components/ChatGPTIcon";
8+
import { ChatGptIcon } from "@/components/CustomIcon";
259

2610
export const getStaticPaths: GetStaticPaths = async () => {
2711
const index = await import("@/assets/chatgpt/samples/index.json").then((mod) => mod.default);

0 commit comments

Comments
 (0)