fix: 파일 네이밍 및 구조 정리

This commit is contained in:
yoosangwook 2024-08-12 16:19:49 +09:00
parent bb0849c2d0
commit 225cf3a566
5 changed files with 14 additions and 23 deletions

View File

@ -0,0 +1,9 @@
import Playground from '@/components/Playground'
export default function PlaygroundPage() {
return (
<>
<Playground />
</>
)
}

View File

@ -9,7 +9,7 @@ export default function Headers() {
</Link>
<div className="space-x-4 text-xl">
<Link href="/intro">Intro</Link>
<Link href="/changelog">Changelog</Link>
<Link href="/playground">Playground</Link>
<Link href="/roof">Roof</Link>
<Link href="/roof2">Roof2</Link>
</div>

View File

@ -1,13 +1,13 @@
'use client'
import { useEffect, useMemo, useState } from 'react'
import { useEffect, useState } from 'react'
import Link from 'next/link'
import { useRecoilState } from 'recoil'
import { modalContent, modalState } from '@/store/modalAtom'
import { AxiosType, useAxios } from '@/hooks/useAxios'
import { useAxios } from '@/hooks/useAxios'
import { Button } from '@nextui-org/react'

View File

@ -7,9 +7,9 @@ import { useAxios } from '@/hooks/useAxios'
import QSelect from '@/components/ui/QSelect'
import styles from './changelog.module.css'
import styles from './playground.module.css'
export default function changelogPage() {
export default function Playground() {
const { get } = useAxios()
const testVar = process.env.NEXT_PUBLIC_TEST
@ -46,24 +46,6 @@ export default function changelogPage() {
<>
<div className="container mx-auto p-4 m-4 border">
<div className={styles.test}> 영역은 테스트입니다.</div>
<div>
<Table isStriped>
<TableHeader>
<TableColumn>DATE</TableColumn>
<TableColumn>NAME</TableColumn>
<TableColumn>CONTENTS</TableColumn>
</TableHeader>
<TableBody>
{data.map((item) => (
<TableRow key={item.id}>
<TableCell>{item.date}</TableCell>
<TableCell>{item.author}</TableCell>
<TableCell>{item.contents}</TableCell>
</TableRow>
))}
</TableBody>
</Table>
</div>
<div className="m-2">
<QSelect />
</div>