fix: rename component to handle case issue

This commit is contained in:
jinhojang6 2023-10-20 23:07:02 +09:00
parent 57d439c6dd
commit 97d0c72237
6 changed files with 5 additions and 7 deletions

View File

@ -7,7 +7,7 @@ export type HomePageProps = React.DetailedHTMLProps<
HTMLDivElement HTMLDivElement
> >
export const HomePage: React.FC<HomePageProps> = ({ children, ...props }) => { export const Home: React.FC<HomePageProps> = ({ children, ...props }) => {
return ( return (
<Root {...props}> <Root {...props}>
<Content>{children}</Content> <Content>{children}</Content>

View File

@ -0,0 +1 @@
export * from './Home'

View File

@ -1 +0,0 @@
export * from './HomePage'

View File

@ -1,6 +1,6 @@
import { SEO } from '@/components/SEO' import { SEO } from '@/components/SEO'
import { Tags } from '@/components/Tags' import { Tags } from '@/components/Tags'
import { HomePage } from '@/containers/Homepage' import { Home } from '@/containers/Home'
import { Button } from '@/components/Button' import { Button } from '@/components/Button'
import { Hero, Description } from '@/components/Hero' import { Hero, Description } from '@/components/Hero'
import { Portfolio, PortfolioItem } from '@/components/Portfolio' import { Portfolio, PortfolioItem } from '@/components/Portfolio'
@ -14,7 +14,7 @@ import { Footer } from '@/components/Footer'
<Navbar /> <Navbar />
<HomePage> <Home>
<Hero> <Hero>
# Institute<br />of Free <br />Technology # Institute<br />of Free <br />Technology
@ -111,4 +111,4 @@ import { Footer } from '@/components/Footer'
</Member> </Member>
</Team> </Team>
<Footer/> <Footer/>
</HomePage> </Home>

View File

@ -1,5 +1,4 @@
import { SEO } from '@/components/SEO' import { SEO } from '@/components/SEO'
import { HomePage } from '@/containers/HomePage'
import { MDXRemote, MDXRemoteSerializeResult } from 'next-mdx-remote' import { MDXRemote, MDXRemoteSerializeResult } from 'next-mdx-remote'
import { serialize } from 'next-mdx-remote/serialize' import { serialize } from 'next-mdx-remote/serialize'
import { DefaultLayout } from '../layouts/DefaultLayout' import { DefaultLayout } from '../layouts/DefaultLayout'
@ -12,7 +11,6 @@ const Page = ({ mdxSource }: Props) => {
return ( return (
<> <>
<SEO /> <SEO />
<HomePage />
<MDXRemote {...mdxSource} /> <MDXRemote {...mdxSource} />
</> </>
) )