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

Commit

Permalink
fix: fix auto import not fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 5, 2023
1 parent ab6048d commit c05436c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
3 changes: 2 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Head from "next/head";
import NavBar from "../layout/NavBar";

import "./globals.css";
import Image from "next/image";

export default function App({ Component, pageProps }: any) {
return (
Expand Down Expand Up @@ -33,7 +34,7 @@ export default function App({ Component, pageProps }: any) {
{/* Vercel footer */}
<a className='flex gap-4 items-center' href='https://vercel.com?utm_source=prompt-engineering&utm_campaign=oss'>
<span>Powered by</span>
<img
<Image
src='https://images.ctfassets.net/e5382hct74si/78Olo8EZRdUlcDUFQvnzG7/fa4cdb6dc04c40fceac194134788a0e2/1618983297-powered-by-vercel.svg'
alt='Vercel Logo'
/>
Expand Down
22 changes: 3 additions & 19 deletions src/pages/chatgpt-samples/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
import type { GetStaticPaths, GetStaticProps } from "next";
import React from "react";
import {
Accordion,
AccordionButton,
AccordionIcon,
AccordionItem,
AccordionPanel,
Box,
Flex,
Grid,
GridItem,
Heading,
Link,
SimpleGrid,
Spacer,
Tooltip,
Center,
} from "@chakra-ui/react";
import { Box, Flex, Heading, Link, Spacer, Tooltip } from "@chakra-ui/react";
import styled from "@emotion/styled";
import { ExternalLinkIcon, LinkIcon, QuestionIcon } from "@chakra-ui/icons";
import { ExternalLinkIcon } from "@chakra-ui/icons";
import CopyComponent from "@/components/CopyComponent";
import SimpleMarkdown from "@/components/SimpleMarkdown";
import { ChatGptIcon } from "@/components/ChatGPTIcon";
import { ChatGptIcon } from "@/components/CustomIcon";

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

0 comments on commit c05436c

Please sign in to comment.