Skip to content

Commit

Permalink
feat: components 경로 panda config에 추가, constant 절대경로 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
SeieunYoo committed Nov 24, 2024
1 parent 593a8b0 commit 6d5942d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions apps/wow-docs/app/overview/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import Space from "@components/Space";
import Text from "@components/Text";
import { routePath } from "@constants/routePath";
import { css } from "@styled-system/css";
import Image from "next/image";
import Link from "next/link";
import { RightArrow } from "wowds-icons";

import { routePath } from "@/constants/routePath";

import OverviewBackgroundImage from "../../public/overview-background.png";

const OverviewPage = () => {
Expand Down
3 changes: 1 addition & 2 deletions apps/wow-docs/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { routePath } from "@constants/routePath";
import { redirect } from "next/navigation";

import { routePath } from "@/constants/routePath";

const Home = () => {
return redirect(routePath.overview);
};
Expand Down
2 changes: 1 addition & 1 deletion apps/wow-docs/components/NavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const NavItem = ({ href, icon: Icon, alt, label, children }: NavItemProps) => {
<li key={child.href} role="none">
<Link
aria-label={child.label}
href={child.href}
href={`${href}${child.href}`}
role="menuitem"
className={navItemStyle({
type:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/wow-docs/panda.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig({
outExtension: "js",
polyfill: true,
jsxFramework: "react",
include: ["./app/**/*.{ts,tsx,js,jsx}"],
include: ["./app/**/*.{ts,tsx,js,jsx}", "./components/**/*.{ts,tsx,js,jsx}"],
exclude: [],
outdir: "styled-system",
hooks: {
Expand Down
3 changes: 2 additions & 1 deletion apps/wow-docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"paths": {
"@/*": ["app/*"],
"@styled-system/*": ["./styled-system/*"],
"@components/*": ["./components/*"]
"@components/*": ["./components/*"],
"@constants/*": ["./constants/*"]
},
"module": "ESNext",
"moduleResolution": "Bundler",
Expand Down

0 comments on commit 6d5942d

Please sign in to comment.